Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Update ec_key.go
Browse files Browse the repository at this point in the history
PEM encoding extended header uses 'kid' instead of 'keyID'
  • Loading branch information
jlhawn committed Nov 18, 2014
1 parent 230dfd1 commit 8b68e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec_key.go
Expand Up @@ -142,7 +142,7 @@ func (k *ecPublicKey) PEMBlock() (*pem.Block, error) {
if err != nil {
return nil, fmt.Errorf("unable to serialize EC PublicKey to DER-encoded PKIX format: %s", err)
}
k.extended["keyID"] = k.KeyID() // For display purposes.
k.extended["kid"] = k.KeyID() // For display purposes.
return createPemBlock("PUBLIC KEY", derBytes, k.extended)
}

Expand Down

0 comments on commit 8b68e99

Please sign in to comment.