Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Apache on Nokia Appliance Manager create custom SSL key
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> 3rd-Party Scripts
View previous topic :: View next topic  
Author Message
fallegretti



Joined: 15 Nov 2006
Posts: 1

Posted: Wed Nov 15, 2006 2:32 pm    Post subject: Apache on Nokia Appliance Manager create custom SSL key  

Hi all,

I am having problem generating a certificate request. I am installing a software called Appliance Manager on Win2k3 SP1. This is a Nokia software which installs apache server. I am unable to start the apache service and my uderstanding is that this is bacause I have not been able to generate a certficate (not even the request).

The path to apache is C:\Nokia\AM1_0\apache and there is the openssl tool C:\Nokia\AM1_0\apache\bin

I have been supplied with a number of batch files to help?! me requeste and generate a certificate but so far I have failed.
These are some of the lines of the script:
echo "Generating the Key for BE Server"
%OPENSSL_HOME%\bin\openssl genrsa -rand world.png -out BEServer.key 1024

echo "Generating the CSR for BE Server"
%OPENSSL_HOME%\bin\openssl req -new -key BEServer.key -out BEServer.csr

echo "Generating the Certificate for BE Server"
%OPENSSL_HOME%\bin\openssl x509 -req -days 3000 -in BEServer.csr -signkey BEServer.key -out BEServer.cer

I have created the OPENSSL_HOME variable and this should be right as it is generating the key, this is what I get from running the batch:
C:\Nokia\AM1_0\bin>BECert.bat
"Generating the Key for BE Server"
Loading 'screen' into random state - done
0 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
..++++++
........++++++
e is 65537 (0x10001)
"Generating the CSR for BE Server"
Unable to load config info
unable to find 'distinguished_name' in config
problems making Certificate Request
3176:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envi
ronment variable:.\crypto\conf\conf_lib.c:325:
"Generating the Certificate for BE Server"
Loading 'screen' into random state - done
BEServer.csr: No such file or directory
"Copying the certificate into the destination folder"
1 file(s) copied.
The system cannot find the file specified.
The system cannot find the file specified.
"Importing the BEServer certificate into truststore file"
keytool error: java.lang.Exception: Alias <bessl> does not exist
keytool error: java.io.FileNotFoundException: BEServer.cer (The system cannot fi
nd the file specified)

If I browse to C:\\nokia\am1_0\apache\bin and run openssl wheu I type req this is what I get:

OpenSSL> req
Unable to load config info

Reading on this forume it would seem that I need to do something with the openssl.cnf file in the openssl folder but neither the file or the folder exist on my machine. Let me know if you need more info.

I know it's a long shot, but any help would be appriated.
Thanks,
Fu
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1538

Posted: Thu Nov 16, 2006 10:45 am    Post subject:  

basically your problem seems to be that openssl can not open the config file

make sure you have a openssl.cnf file where the openssl executable resides and it should fix it
Back to top  
Heider



Joined: 16 Aug 2008
Posts: 1
Location: London

Posted: Sat Aug 16, 2008 8:48 am    Post subject:  

You are missing the following from your environment variable:

OPENSSL_CONF=/$YOUR_OPENSSL_PATH/openssl.cnf

Where $YOUR_OPENSSL_PATH is the location of your OpenSSL's "openssl.cnf" file. To set it, you need to be in the shell:

1) For UNIX; CD into your directory where your openssl.cnf file is location, and then type in:

OPENSSL_CONF=/(***Your Open SSL Path***)/openssl.cnf
export OPENSSL_CONF

2) For DOS: Select "Start -> Run -> cmd.exe -> ENTER"
CD (***Your Open SSL Path***)
set OPENSSL_CONF=openssl.cnf

Run the OpenSSL from there, all should be fine :D

Regards
Heider
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> 3rd-Party Scripts
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group