Fix certutil test

This commit is contained in:
Jeff Mitchell 2018-02-23 01:35:07 -05:00
parent 099d89ff9d
commit b1cf13f14c
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ func setCerts() {
Bytes: marshaledKey, Bytes: marshaledKey,
} }
privECKeyPem = string(pem.EncodeToMemory(keyPEMBlock)) privECKeyPem = string(pem.EncodeToMemory(keyPEMBlock))
marshaledKey, err = x509.MarshalPKCS8PrivateKey(key) marshaledKey, err = MarshalPKCS8PrivateKey(key)
if err != nil { if err != nil {
panic(err) panic(err)
} }
@ -680,7 +680,7 @@ func setCerts() {
Bytes: marshaledKey, Bytes: marshaledKey,
} }
privRSAKeyPem = string(pem.EncodeToMemory(keyPEMBlock)) privRSAKeyPem = string(pem.EncodeToMemory(keyPEMBlock))
marshaledKey, err = x509.MarshalPKCS8PrivateKey(key) marshaledKey, err = MarshalPKCS8PrivateKey(key)
if err != nil { if err != nil {
panic(err) panic(err)
} }