OpenSSL crashes generating CSR -- help!

2011-05-03 Thread Jesse Keller
I need to generate a CSR, but OpenSSL always crashes. What am I doing wrong?

 

c:\GnuWin32\binopenssl genrsa -out switchvox.key 2048

 

c:\GnuWin32\binopenssl req -new -key switchvox.key -out switchvox.csr
-config ..\share\openssl.cnf

 

OpenSSL prompts me for the city, state, etc. 

 

I fill everything in, it runs for a few seconds, then crashes, every time.

 

Is there some other way to do this?

 

 

Thanks!

 



RE: OpenSSL crashes generating CSR -- help!

2011-05-03 Thread Dave Thompson
   From: owner-openssl-us...@openssl.org On Behalf Of Jesse Keller
   Sent: Tuesday, 03 May, 2011 09:17

   I need to generate a CSR, but OpenSSL always crashes. What am I
doing wrong?
   c:\GnuWin32\binopenssl genrsa -out switchvox.key 2048
   c:\GnuWin32\binopenssl req -new -key switchvox.key -out
switchvox.csr 
 -config ..\share\openssl.cnf

What you posted looks fine, and even if you did something wrong 
OpenSSL should never just crash, it should give an error message.

Do we assume this is the build at 
http://gnuwin32.sourceforge.net/packages/openssl.htm 
described as 0.9.8h (but perhaps patched because it adds -1)?

1. 0.9.8h is pretty old. Checking a few nearby things 
at random, this whole project appears pretty out of date.
(It should still work, but won't include recent features 
-- and recent security fixes.)

Current OpenSSL builds for Windows (but mainly using VC++, 
not mingw, if that matters to you) are available free at 
http://www.slproweb.com/products/Win32OpenSSL.html .
Or you can build from source given suitable tools.

2. Their -src package is 5 times larger than official source??

3. If I install just the -bin package on my scratch system 
(XP SP3) it runs, does not crash, and creates a valid CSR.

4. What Windows are you on, and what exactly do you see?
Do you get a fault code? address or EIP? registers? stack? 
Anything from Dr. Watson? In the event log?
Do you have a debugger available? If you run the problem 
command under a debugger what does it say?



__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org