Stephen, Thanks for the reply. We were kind of hit over the head with this, as it had been working fine for quite a while with no problems and suddenly blew up on us.
Both the openssl application and the 2 dll's are the official 0.9.7 release. I searched the machine and these are the only versions on the machine. I have tried this on several machines also, just to eliminate any concern that it is my machine. I also tried a few of the recent snapshot stable builds and they exhibit the same problem. I have not backed up and tried a 0.9.6 build yet. The exact command that I ran was: "openssl req -config openssl.cnf -new -x509 -days 12784 -sha1 -newkey rsa:1024 -keyout CA\private\cakey.pem -out CA\certs\cacert.pem -passin file:CA\pass\ca_pp -passout file:CA\pass\caout_pp" Where ca_pp and caout_pp are both simple text files with a single line containing a passphrase. Here is the output from my DOS windows: C:\uap8245\tools\ca>openssl req -config openssl.cnf -new -x509 -days 12784 -sha1 -newkey rsa:1024 -keyout CA\private\cakey.pem -out CA\certs\cacert.pem -passin file:CA\pass\ca_pp -passout file:CA\pass\caout_pp Using configuration from openssl.cnf Loading 'screen' into random state - done Generating a 1024 bit RSA private key .......++++++ .......................++++++ writing new private key to 'CA\private\cakey.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]: State or Province Name (full name) [Washington]: Locality Name (eg, city) [Everett]: Organization Name (eg, company) [Intermec Technologies Corporation]: Organizational Unit Name (eg, section) [Security Engineering]: Common Name (eg, YOUR name) [Intermec Technologies Corporation]: Email Address []: Immediately after receiving all of the input information for the cert, I get the exception. It looks from the nice cryptic windows message that somebody is accessing a null pointer, the windows error message is: "openssl.exe - Application Error The instruction at "0x0035bccc" referenced memory at "0x00000000". The memory could not be "read". Opening a debugger provides the following error message: "Unhandled exception in openssl.exe (LIBEAY32.DLL): 0xC0000005: Access Violation" To give more information than you probably want, here are the registers: EAX = 00000000 EBX = 00000000 ECX = 00000000 EDX = 003D0608 ESI = 00933708 EDI = 00933E80 EIP = 0035BCCC ESP = 0012F46C EBP = 009310F8 EFL = 00000246 MM0 = 0000000000000000 MM1 = 0000000000000000 MM2 = 0000000000000000 MM3 = 0000000000000000 MM4 = 0000000000000000 MM5 = 0000000000000000 MM6 = 0000000000000000 MM7 = B400000000000000 XMM0 = 00000000000000000000000000000000 XMM1 = 00000000000000000000000000000000 XMM2 = 00000000000000000000000000000000 XMM3 = 00000000000000000000000000000000 XMM4 = 00000000000000000000000000000000 XMM5 = 00000000000000000000000000000000 XMM6 = 00000000000000000000000000000000 XMM7 = 00000000000000000000000000000000 CS = 001B DS = 0023 ES = 0023 SS = 0023 FS = 0038 GS = 0000 OV=0 UP=0 EI=1 PL=0 ZR=1 AC=0 PE=1 CY=0 XMM0DL = +0.00000000000000E+000 XMM0DH = +0.00000000000000E+000 XMM1DL = +0.00000000000000E+000 XMM1DH = +0.00000000000000E+000 XMM2DL = +0.00000000000000E+000 XMM2DH = +0.00000000000000E+000 XMM3DL = +0.00000000000000E+000 XMM3DH = +0.00000000000000E+000 XMM4DL = +0.00000000000000E+000 XMM4DH = +0.00000000000000E+000 XMM5DL = +0.00000000000000E+000 XMM5DH = +0.00000000000000E+000 XMM6DL = +0.00000000000000E+000 XMM6DH = +0.00000000000000E+000 XMM7DL = +0.00000000000000E+000 XMM7DH = +0.00000000000000E+000 XMM00 = +0.00000E+000 XMM01 = +0.00000E+000 XMM02 = +0.00000E+000 XMM03 = +0.00000E+000 XMM10 = +0.00000E+000 XMM11 = +0.00000E+000 XMM12 = +0.00000E+000 XMM13 = +0.00000E+000 XMM20 = +0.00000E+000 XMM21 = +0.00000E+000 XMM22 = +0.00000E+000 XMM23 = +0.00000E+000 XMM30 = +0.00000E+000 XMM31 = +0.00000E+000 XMM32 = +0.00000E+000 XMM33 = +0.00000E+000 XMM40 = +0.00000E+000 XMM41 = +0.00000E+000 XMM42 = +0.00000E+000 XMM43 = +0.00000E+000 XMM50 = +0.00000E+000 XMM51 = +0.00000E+000 XMM52 = +0.00000E+000 XMM53 = +0.00000E+000 XMM60 = +0.00000E+000 XMM61 = +0.00000E+000 XMM62 = +0.00000E+000 XMM63 = +0.00000E+000 XMM70 = +0.00000E+000 XMM71 = +0.00000E+000 XMM72 = +0.00000E+000 XMM73 = +0.00000E+000 MXCSR = 00001F80 ST0 = +0.00000000000000000e+0000 ST1 = +0.00000000000000000e+0000 ST2 = +0.00000000000000000e+0000 ST3 = +0.00000000000000000e+0000 ST4 = +0.00000000000000000e+0000 ST5 = +0.00000000000000000e+0000 ST6 = +0.00000000000000000e+0000 ST7 = +4.50000000000000000e+0001 CTRL = 027F STAT = 0000 TAGS = FFFF EIP = 00350C69 CS = 001B DS = 0023 EDO = 0039B6F0 And here is the (mostly useless) call stack: LIBEAY32! 0035bccc() 6464416c() Regarding compiler, I used Visual C++ 6.0 with service pack 6. nmake version 6.00.8168.0. I am running Windows XP, SP1 with all the updates. Let me know if you want me to try building something else, or troubleshooting at all. I have a fair amount of experience with OpenSSL, I actually integrated it into our company's wireless access point. I'm not quite as familiar with the openssl application though, so I haven't started to try debugging it much more yet. Thanks. Jason Schoon Software Engineer Intermec Technologies 550 Second Street SE Cedar Rapids, IA 52401 319/369-3558 phone 319/369-3577 fax -----Original Message----- From: Stephen Henson via RT [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 8:36 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [openssl.org #472] Exception when running "openssl req" command after Jan 18th [[EMAIL PROTECTED] - Wed Jan 22 09:20:19 2003]: > I have tried this with both 0.9.7-beta 3 and the official 0.9.7 > release. > > Under windows, running the "openssl req" command causes an exception > in libeay32.dll. I found this on a machine that had been working > perfectly and > then suddenly started exceptioning. On the advice of a co-developer, > I > tried setting the date back on my PC. > > Lo and behold, I find that it works when I have my PC set to Jan 18th, > 2003 or earlier, but the second I am on Jan 19th or later I get the > exception. > > > Please let me know if there is any other useful information I can > obtain. I have not had a chance to try this on a Linux system yet, > only Windows. Are the OpenSSL DLL versions the same as the openssl utility? That is is the openssl utility picking up a different version of the DLLs? You say 'openssl req': what was the precise command you ran? That is, options etc. What did you use to compile OpenSSL? If VC++ did you add any service packs or the processor add on? What version of Windows is this? Steve. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]