|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
I can not get the Openssl working |
« View previous topic :: View next topic » |
Author |
Message
|
jeevan |
Posted: Fri Aug 29, 2008 12:35 pm Post subject: I can not get the Openssl working |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I just downloaded the opensll binary and installed it.
Binary: Win32 OpenSSL v0.9.8 ( 6 mb)
I followed the follwoing instructions;
===========
Ingredients
Windows 2000 running Internet Information Services (IIS)
The OpenSSL tools for Windows from Shining Light Productions. This is a Windows port of the popular OpenSSL toolkit.
Walkthrough
Install and configure the OpenSSL toolkit
Get OpenSSL from the address above, and run the installer, accepting the defaults. These instructions assume OpenSSL is installed in C:\OpenSSL.
Add C:\OpenSSL\bin to your system path (Control Panel, System, Advanced, Environment Variables, System Variables) - this isn't strictly necessary but it makes things a lot easier.
Create a working directory - here, we'll use c:\ssl as our working folder.
Download this copy of openssl.conf to your working folder. (Note: I have no idea what most of the options in this file mean. I just hacked it around until it worked...)
Set up the directory structure and files required by OpenSSL:
C:\ssl>md keys
C:\ssl>md requests
C:\ssl>md certs
Create the file database.txt - an empty (zero-byte) text file. This can be done using the 'touch' command if you have it (it's a Unix tool not available on Windows by default, but you might have one lying around), or by creating an empty file manually:
c:\ssl>copy con database.txt
^Z
C:\ssl>
MS-DOS veterans will recognise this particular invocation. We're copying from CON (the console) to a file called database.txt, and that's a Control-Z end-of-file character on the first line. This should produce a zero-byte file called c:\ssl\database.txt
Create the serial number file serial.txt. This is a plain ASCII file containing the string "01" on the first line, followed by a newline. Again, we can use a little bit of ancient DOS magic:
C:\ssl>copy con serial.txt
01
^Z
C:\ssl>
to achieve the desired effect. (That's keystrokes zero, one, return, control-Z, return)
Set up a Certificate Authority (CA)
First, we create a 1024-bit private key to use when creating our CA.:
C:\ssl>openssl genrsa -des3 -out keys/ca.key 1024
Loading 'screen' into random state - done
warning, not much extra random data, consider using the -rand option
Generating RSA private key, 1024 bit long modulus
...........++++++
..................++++++
e is 65537 (0x10001)
Enter PEM pass phrase: - choose a memorable pass phrase to use for this key
Verifying password - Enter PEM pass phrase: - type your pass phrase again for verification
The pass phrase will be requested whenever you use this certificate for anything, so make sure you remember it. This will create a file called c:\ssl\keys\ca.key, containing our certificate authority private key.
Next, we create a master certificate based on this key, to use when signing other certificates
===========
My problem is when i try to run the openssl whatever command, i get a response saying " the system can not execute the specified program."
I am running from the same dir and the openssl.exe is there.
Do any one of you have run openssl? What do I need to do to get it working?
Any configuration? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 29, 2008 6:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Haven't run this version. I ran the cygwin version of openssl and it worked fine for me.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 01, 2008 12:08 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I've installed and used it, but getting the correct installable is key; I used Win32OpenSSL_Light-0_9_8g.exe and had no problems. This includes the installer, which does any necessary configuration for you. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
jeevan |
Posted: Tue Sep 02, 2008 7:58 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
exerk wrote: |
I've installed and used it, but getting the correct installable is key; I used Win32OpenSSL_Light-0_9_8g.exe and had no problems. This includes the installer, which does any necessary configuration for you. |
Previously I have downloaded another version Win32 OpenSSL v0.9.8h from (http://www.slproweb.com/products/Win32OpenSSL.html). Now I downloaded the light version as you have suggested. I installed it. When I run it, got the same error.
The system cannot execute the specified program.
Seems definitely, I am missing something to run it.
When I check the openssl.cfg file, I can see unix like syntax. I am wondering whether I have to have this changed in order to run in windows. ef
dir = ./demoCA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several ctificates with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.
I would be grateful, if you could clarify this and help me in resolving this problem.
thanks a lot |
|
Back to top |
|
 |
exerk |
Posted: Tue Sep 02, 2008 10:42 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I can only suggest uninstalling everything to do with OpenSSL, including cleaning any Registry entries (please back up your Registry first) and any environment variables it may have set. Then reboot to ensure a clean platform, and install using Win32OpenSSL_Light-0_9_8g.exe, which I've used a number of times on different machines with no problem. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|