Fix typos.

This commit is contained in:
Mariano Cano 2020-10-05 17:20:22 -07:00
parent 329f401e58
commit 8381e9bd17
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ var (
oidStepCertificateAuthority = append(asn1.ObjectIdentifier(nil), append(oidStepRoot, 2)...)
)
// CertificateAuthorityExtension is type used to encode the certificate
// CertificateAuthorityExtension type is used to encode the certificate
// authority extension.
type CertificateAuthorityExtension struct {
Type string

View File

@ -190,11 +190,11 @@ func (db *DB) RevokeSSH(rci *RevokedCertificateInfo) error {
// GetCertificate retrieves a certificate by the serial number.
func (db *DB) GetCertificate(serialNumber string) (*x509.Certificate, error) {
ans1Data, err := db.Get(certsTable, []byte(serialNumber))
asn1Data, err := db.Get(certsTable, []byte(serialNumber))
if err != nil {
return nil, errors.Wrap(err, "database Get error")
}
cert, err := x509.ParseCertificate(ans1Data)
cert, err := x509.ParseCertificate(asn1Data)
if err != nil {
return nil, errors.Wrapf(err, "error parsing certificate with serial number %s", serialNumber)
}