Hello,
Days now Im trying to generate a self-signed certificate for my testing server, but Im not able to do that. I dont know whats wrong, but every time Im trying to generate one Im getting the following Warnings/Errors, and the cert files that are created are empty.
Warning: openssl_csr_new(): dn: add_entry_by_NID 18 -> (failed; check error queue and value of string_mask OpenSSL option if illegal characters are reported) in /usr/local/cwpsrv/htdocs/resources/admin/modules/ssl_generator.php(1) : eval()'d code(1) : eval()'d code on line 11
Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/cwpsrv/htdocs/resources/admin/modules/ssl_generator.php(1) : eval()'d code(1) : eval()'d code on line 14
Warning: openssl_csr_export() expects parameter 1 to be resource, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/modules/ssl_generator.php(1) : eval()'d code(1) : eval()'d code on line 22
Warning: openssl_x509_export(): cannot get cert from parameter 1 in /usr/local/cwpsrv/htdocs/resources/admin/modules/ssl_generator.php(1) : eval()'d code(1) : eval()'d code on line 22
Files saved to:
/etc/pki/tls/certs/*******.com.csr
/etc/pki/tls/certs/*******.com.cert
/etc/pki/tls/certs/*******.com.key
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short
error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value