I am having a problem creating a certificate file using openssl under
Windows 2000 Professional
The command I am using is (minus paths and .exe): openssl req -outform PEM -new -out cert.pem -x509
I have tested this command on my Linux box. It works there, but on Windows I get
the following error output right after it gets the password from the command line:
.
.
.
-----END RSA PRIVATE KEY-----
-----
unable to find 'distinguished_name' in config
problems making Certificate Request
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
504:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envir
onment variable:.\crypto\conf\conf_lib.c:343:
The system cannot find the file specified.
I want all the information to be asked of the user when the command is executed
from a batch file under a command prompt.
This is right now the contents of my openssl.cnf:
# # OpenSSL example configuration file. # This is mostly being used for generation of certificate requests. [ req ] default_bits = 1024 default_keyfile = privkey.pem default_md = md5 #prompt = yes distinguished_name = root_ca_distinguished_name x509_extensions = root_ca_extensions
[ root_ca_distinguished_name ] commonName = Example CA stateOrProvinceName = State countryName = US emailAddress = [EMAIL PROTECTED] organiozationName = Root Certification Authority
[ root_ca_extensions ] basicConstraints = CA:true
I think the problem is probably something in this file.
Also if I can leave out any of these lines and still have it work, that would be better.
Anyway, what do I need to set the configuration file to for this to work?
Are there any other files it's looking for?
Thanks
MW
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
