diff options
author | Ben Burwell <ben@benburwell.com> | 2020-04-13 23:57:13 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-04-13 23:57:13 -0400 |
commit | 2ce3b86e0ff69538935db3149d1ed2f24aea09a3 (patch) | |
tree | 1c0329a5c1191690e57e7160bd3150c9a2851866 /server/signer | |
parent | 8b1ee3e95010681d98d1b31af98f0ce0832cedd2 (diff) |
Simplify
Diffstat (limited to 'server/signer')
-rw-r--r-- | server/signer/signer.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/server/signer/signer.go b/server/signer/signer.go index 2a15849..e4ed789 100644 --- a/server/signer/signer.go +++ b/server/signer/signer.go @@ -8,12 +8,9 @@ import ( "time" "go4.org/wkfs" - _ "go4.org/wkfs/gcs" // Register "/gcs/" as a wkfs. "github.com/nsheridan/cashier/lib" "github.com/nsheridan/cashier/server/config" - "github.com/nsheridan/cashier/server/store" - "github.com/stripe/krl" "golang.org/x/crypto/ssh" ) @@ -78,22 +75,6 @@ func (s *KeySigner) SignUserKey(req *lib.SignRequest, username string) (*ssh.Cer return cert, nil } -// GenerateRevocationList returns an SSH key revocation list (KRL). -func (s *KeySigner) GenerateRevocationList(certs []*store.CertRecord) ([]byte, error) { - revoked := &krl.KRLCertificateSection{ - CA: s.ca.PublicKey(), - } - ids := krl.KRLCertificateKeyID{} - for _, c := range certs { - ids = append(ids, c.KeyID) - } - revoked.Sections = append(revoked.Sections, &ids) - k := &krl.KRL{ - Sections: []krl.KRLSection{revoked}, - } - return k.Marshal(rand.Reader) -} - // New creates a new KeySigner from the supplied configuration. func New(conf *config.SSH) (*KeySigner, error) { data, err := wkfs.ReadFile(conf.SigningKey) |