NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on July 15, 2015, 06:19:09 AM

Title: Creating CSR error
Post by: walter.dasilva on July 15, 2015, 06:19:09 AM
Hi,

I´m trying to create a CSR to buy a certificate but i´m getting error from CreateCertificateSigningRequest.bat

--- Create Certificate using Private Key
(Please enter the same password you used earlier when asked to do so)

WARNING: can't open config file: /usr/local/ssl/openssl.cnf
Loading 'screen' into random state - done
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]:

I have copied all files openssl.exe and dll and makecertificates folder to my server. and had have tried from bin too.

What i´m doing wrong?

Thanks
Title: Re: Creating CSR error
Post by: Bruce on July 16, 2015, 12:20:47 AM
I've seen this once before, but it was a while back, so this is from memory;

Go to a command prompt window. type
SET
this lists all the "Environment variables".
you should see one like;
OPENSSL_CONF=C:\OpenSSL\bin\openssl.cfg

I think this is likely pointing to a folder that doesn't exist anymore. So either remove the variable completely;
SET OPENSSL_CONF=;

or set it to some directory that exists.

then run the batch file and I think it will work.

cheers
Bruce
Title: Re: Creating CSR error
Post by: Vinnie on July 16, 2015, 01:20:34 AM
Yes I had this problem a few weeks ago.

The file supplied is OPENSSL.CONF

but looking for usr\local\ssl\openssl.cnf

I got around this by making folder usr\local\ssl

Copy Openssl.conf to new folder and rename to openssl.cnf.

Make sure you leave the old file there it requires that later.

Cheers

Vinnie

Title: Re: Creating CSR error
Post by: walter.dasilva on July 16, 2015, 05:56:58 AM
HI,

Fixing SET OPENSSL_CONF solved the problem.

Thanks