[Feedback] Use organization name
@@ -43,7 +43,8 @@ pub fn generate_self_signed_certificate_and_key(subject_alternate_name: &str,
let mut params =
CertificateParams::new(vec![subject_alternate_name.to_string(), "localhost".to_string(),]);
let mut distinguished_name = DistinguishedName::new();
- distinguished_name.push(DnType::CommonName, "Habitat Supervisor Control Gateway");
+ distinguished_name.push(DnType::OrganizationName,
+ "Habitat Supervisor Control Gateway");
params.distinguished_name = distinguished_name;
params.alg = &PKCS_ECDSA_P256_SHA256;
