Roxen.git / server / etc / modules / Roxen.pmod

version» Context lines:

Roxen.git/server/etc/modules/Roxen.pmod:5871: Inside #if constant(Standards.X509)
   key_type = "ECDSA";    }       string key_pem =    Standards.PEM.build(key_type + " PRIVATE KEY",    Standards.PKCS[key_type].private_key(key));       // These are the fields used by testca.pem.    array(mapping(string:object)) name = ({    ([ "organizationName": -  Standards.ASN1.Types.asn1_printable_string("Roxen IS") +  Standards.ASN1.Types.PrintableString("Roxen IS")    ]),    ([ "organizationUnitName": -  Standards.ASN1.Types.asn1_printable_string("Automatic certificate") +  Standards.ASN1.Types.PrintableString("Automatic certificate")    ]),    ([ "commonName":    (Standards.ASN1.Types.asn1_printable_valid(common_name)? -  Standards.ASN1.Types.asn1_printable_string: -  Standards.ASN1.Types.asn1_broken_teletex_string)(common_name) +  Standards.ASN1.Types.PrintableString: +  Standards.ASN1.Types.BrokenTeletexString)(common_name)    ]),    });       int ttl = 3652; // 10 years.       /* Create a plain X.509 v3 certificate, with just default extensions. */    string cert =    Standards.X509.make_selfsigned_certificate(key, 24 * 3600 * ttl, name);       return Standards.PEM.build("CERTIFICATE", cert) + key_pem;