aboutsummaryrefslogtreecommitdiff
path: root/server/signer/signer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/signer/signer.go')
-rw-r--r--server/signer/signer.go19
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)