Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have WampServer 2 installed on my WinXP Pro SP3 box, Apache 2.2.11 with ssl module enabled, which runs the comnpanies intranet website. gives some pointers of generating a self signed certificate. But I encounter a error while running through the example

openssl genrsa -des3 -out server.key 1024

where openssl.exe is located under C:\wamp\bin\apache\Apache2.2.11\bin

The error code that gets generated is

4828:error:02001015:system library:fopen:Is a directory:.\crypto\bio\bss_file.c: 126:fopen('d:/test/openssl098kvc6/openssl.cnf','rb') 4828:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c :131: 4828:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con f\conf_def.c:199:

Where am I going wrong?

share|improve this question

closed as off-topic by Falcon Momot, Ward, EEAA, MichelZ, gtirloni Sep 29 '14 at 11:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Falcon Momot, Ward, EEAA, MichelZ, gtirloni
If this question can be reworded to fit the rules in the help center, please edit the question.

Just an FYI - WampServer 2 (along with many of the other one-click stack installers) is meant to be used only as a development environment only. The developers of these packages configure things as to not get in the way of site development. As such, security is not great. If this is for limited internal use only, you're probably okay as long as you trust your users, but I'd never think of using it in production for a public-facing website. – EEAA Oct 12 '10 at 14:38
@ErikA Intranet app. – abel Oct 12 '10 at 15:13
up vote 1 down vote accepted

I'm not a Windows person, so I can't give specific advice about WampServer or be confident that I'm interpreting your error message correctly, but it looks like it's complaining about not having a config file for openssl. You might want to try specifying it explicitly:

openssl genrsa -config <path to your openssl.cnf> -out server.key
share|improve this answer

I was having the same problem, it appears that openssl.exe is broken in some of the WampServer 2.0 releases. (Just running openssl.exe without any options will trigger the similar errors)

I downloaded and installed the GNUWin port of OpenSSL from Sourceforge...

And created my server key using this version of openssl.exe.

share|improve this answer
thank you. I will try that – abel Jan 6 '11 at 6:45

Try installing the full version of openssl on your computer and creating the certificate through that. Chances are you are missing some dependencies/etc. Shining Light Productions has a compiled and installable version of openssl for windows.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.