feat: v0.2.0-rc

This commit is contained in:
2024-03-30 16:08:19 +08:00
parent 0d2a845a26
commit 9eb06c5135
3 changed files with 54 additions and 50 deletions

View File

@@ -34,6 +34,7 @@ pub fn issue_certificate(intermediate_certificate: &Certificate, domain: &str) -
}
fn parse_pkcs8(pem: &str) -> String {
// KeyPair only support PKCS#8 private key with public key, though public key is optional
{
use p256::{pkcs8::{DecodePrivateKey, EncodePrivateKey, LineEnding}, SecretKey};
let secret_key = SecretKey::from_pkcs8_pem(pem);