feat: v0.2.0-rc, add macro ecc_private_key_convert

This commit is contained in:
2024-03-30 18:34:14 +08:00
parent bb0b526c68
commit f565d01c27
3 changed files with 24 additions and 34 deletions

View File

@@ -1,6 +1,9 @@
use std::fs;
use rcgen::{BasicConstraints, Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, PKCS_ECDSA_P256_SHA256};
use rcgen::{
BasicConstraints, Certificate, CertificateParams,
DistinguishedName, DnType, IsCa, KeyPair, PKCS_ECDSA_P256_SHA256,
};
fn main() {
let key_pair = KeyPair::generate(&PKCS_ECDSA_P256_SHA256).expect("Generate key pair failed");