I am running windows xp 32bit
I just downloaded Openssl from the following URL and installed it.
http://www.slproweb.com/products/Win32OpenSSL.html
and then i tried to create a self signed certificate by using the following command
openssl req -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
then it started giving the following error
Unable to load config info from /usr/local/ssl/openssl.cnf
Then after googling sometime i changed the above command to
openssl req -config C:OpenSSLinopenssl.conf -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
But now i get the following error in the command prompt
error on line -1 of C:OpenSSLinopenssl.conf
4220:error:02001002:system library:fopen:No such file or
directory:.cryptoioss_file.c:126:fopen('C:OpenSSLinopenssl.conf','rb')
4220:error:2006D080:BIO routines:BIO_new_file:no such
file:.cryptoioss_file.c:129:
4220:error:0E078072:configuration file routines:DEF_LOAD:no such
file:.cryptoconfconf_def.c:197:
Please help.
Thanks in advance.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…