Fix certutil test
This commit is contained in:
parent
099d89ff9d
commit
b1cf13f14c
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue