feat: v0.2.0-rc, add macro ecc_private_key_convert
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user