Openssl cannot find Openssl.cnf
Posted by: wesmin (131.128.76.---)
Date: January 05, 2021 06:51PM

I am trying to generate a csr and a private key using openssl that comes with WAMP . I need to run the following command
 req -new -newkey rsa:2048 -nodes -keyout myserver.key -out server.csr

The problem I am having is that openssl gives me the  following error
Can't open C:\Apache24\conf/openssl.cnf for reading, No such file or directory

How do I fix this? Thanks

I should say that my WAMP is installed in the D:\ drive instead of the C:\ drive. 
WAMP version: 3.24
Apache 2.4.46
Windows server 2019

Options: ReplyQuote
Re: Openssl cannot find Openssl.cnf
Posted by: RiggsFolly (Moderator)
Date: January 05, 2021 07:51PM

Tell openssl where its config file is

Run this in the terminal before doing any openssl

set openssl_conf=d:\wamp64\bin\apache\apache2.4.46\conf\openssl.cnf

(Windows 10 Pro 64bit) (Wampserver 3.2.8 32bit & 64bit) Aestan Tray Menu
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Edited 1 time(s). Last edit at 01/05/2021 07:51PM by RiggsFolly.

Options: ReplyQuote

Sorry, only registered users may post in this forum.