The error message means what it says: it can not find privkey.pem.  When
generating a new certificate request, you will need to sign the request
with your private key, which needs to be generated first.

http://www.google.com/search?q=generate+rsa+private+key+openssl

--Will

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of andrew.luke
Sent: Thursday, June 04, 2009 8:11 AM
To: [email protected]
Subject: Trouble generating a self signed certificate


I've been trying to generate a self signed certificate to get SSL
working on a very simple internal web server.  I'm using a windows
server 2003 box so I got the open SSL windows binaries from
http://www.slproweb.com/products/Win32OpenSSL.html.  Using a HOWTO I
found here
http://www.sitepoint.com/article/securing-apache-2-server-ssl/  I used
the following command to try and generate a cert:

openssl req -new -key domainname.com.key -x509 -out sslname.crt

I got an error on that one so I tried a command the openssl.org
documentation had:

openssl req -new -key privkey.pem -out cert.csr

Again I got an error like this:
Error opening Private Key privkey.pem
3924:error:02001002:system library:fopen:No such file or
directory:.\crypto\bio\bss_file.c:356:fopen
3924:error:20074002:BIO routines:FILE_CTRL:system
lib:.\crypto\bio\bss_file.c:358:
unable to load Private Key

Any idea what the problem is?
--
View this message in context:
http://www.nabble.com/Trouble-generating-a-self-signed-certificate-tp238
69634p23869634.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to