Hi, i have installed openssl 0.9.7d using a file downloaded from a web called Win32 OpenSSL v0.9.7d.exe, so i didn't compile any source code.
Well, the problem is that i have tried to create a CA using this command:


openssl req -x509 -newkey rsa -out cacert.pem -outform PEM

When i use this command in linux (with a correct previous definition of the variable OPENSSL_CONF), it works, but in win32 the execution of the
command produces this output:


C:\wkf\Luis\prueba\testCA>openssl req -x509 -newkey rsa -out cacert.pem -outform PEM
*Unable to load config info*
Loading 'screen' into random state - done
Generating a 512 bit RSA private key
..........++++++++++++
.....++++++++++++
writing new private key to stdout
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,49C65E8460F87F22


bYYzKXbGYT7EVlKZE+YmzvKMQx8SJ5PB62pca7ghahfzusWs/NQRPaqxs+mr4Z2y
v5ukcYZPgwa3MFukE8qz7BAKY/eK3cxacaxiOAJ0f4csgYz16OpGmrQL3AacnOmB
AirNFg09H/xrCf83u31MMON7s65JRR90qlR+CE7goeAIZd3aDILHJyyoe9k5ZkPn
9fVuMBZ9XSSINE4V2lD2RlLbGYGoZxn8DkMTFDa+65L5747slwcrXgJIT1Qt+B6S
bXk73opQq4zGL6eteaKcd111wWIMiTY1yuZXlAEtmMFxVOQnBkQ1N/EPvtFTK4em
PTu7vEvnN4Xc0+Wwhj0Z0iEEHdiflRhag/LeQHB617owTlcbqY4sCe+idLYXX0Z9
CafZofmjdrTwqtJRGu8KlJlL9hLDuxJXNxZuZ5S5FB8=
-----END RSA PRIVATE KEY-----
-----
*unable to find 'distinguished_name' in config
problems making Certificate Request
1592:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or environment variable:cry
pto/conf/conf_lib.c:325:*


I suposse that i have to do something like in linux, create a config file and define the variable OPENSSL_CONF; am i right?
If that is what i have to do, the config file is the same file in linux and in win32?, If not where can i get an example of this win32 config file?


Thanks for your help.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to