feat: v0.2.0-rc, optimize code
This commit is contained in:
@@ -12,7 +12,7 @@ fn main() {
|
||||
certificate_params.key_pair = Some(key_pair);
|
||||
certificate_params.is_ca = IsCa::Ca(BasicConstraints::Constrained(0));
|
||||
let mut distinguished_name = DistinguishedName::new();
|
||||
distinguished_name.push(DnType::CommonName, "Proxy Inspector Test CA");
|
||||
distinguished_name.push(DnType::CommonName, "Proxy Inspector Self Signed Test CA");
|
||||
certificate_params.distinguished_name = distinguished_name;
|
||||
|
||||
let certificate = Certificate::from_params(certificate_params)
|
||||
|
||||
Reference in New Issue
Block a user