Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

what is the location of openssl.conf (no replies)

$
0
0
1 windows 10 64 bit
2 wamp3.1.0 64 bit
3 apache 2.4.27
4 php 7.1.9
5 mysql 5.7.19
5a mariadb 10.2.8
Icon is green
I can run all virtual hosts
for the wamp tutorial for ssl hosts I made these virt hosts

127.0.0.1 *.wamphelpers.dev
::1 *.wamphelpers.dev

127.0.0.1 *.wamphelpers.localhost
::1 *.wamphelpers.localhost

locahost is achievable
I have access to PHPMyAdmin
I use AVAST as antivir
A:\wamp64\ is my wamp location
I am following this tutorial for creating aan SSL and https connection because I cant use firefox since some time as they oblige a https connection for all url’s

tut: [forum.wampserver.com]
I have openssl.exe in the right dir installed

My problem starts just before step 2 begins.
When generating the pem file I do it this way
.\openssl genrsa –out website\server.key 2048
When I dont use .\ windows doesnt trust the openssl command.
In the \website\ dir I didnt find a file with a *.pem extension but this file: server.key
then I replaced the command server.key to privkey.pem. Is that allowed?

Then I continued but got an error
This is a copypaste of my PowerShell

PS A:\wamp64\bin\apache\apache2.4.27\bin\website> cd \wamp64\bin\apache\apache2.4.27\bin\

PS A:\wamp64\bin\apache\apache2.4.27\bin> .\openssl req -new -key website\privkey.pem -out website\server.csr

Can't open C:\Program Files\Common Files\SSL/openssl.cnf for reading, No such file or directory

5948:error:02001003:system library:fopen:No such process:crypto\bio\bss_file.c:74:fopen('C:\Program Files\Common Files\SSL/openssl.cnf','r')


5948:error:2006D080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:81:

unable to find 'distinguished_name' in config
problems making Certificate Request
5948:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or environment variable:crypto\conf\conf_lib.c:272:

PS A:\wamp64\bin\apache\apache2.4.27\bin> .\openssl req -new -key website\server.key -out website\server.csr

Can't open C:\Program Files\Common Files\SSL/openssl.cnf for reading, No such file or directory
11088:error:02001003:system library:fopen:No such process:crypto\bio\bss_file.c:74:fopen('C:\Program Files\Common Files\SSL/openssl.cnf','r')
11088:error:2006D080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:81:
unable to find 'distinguished_name' in config
problems making Certificate Request
11088:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or environment variable:crypto\conf\conf_lib.c:272:
PS A:\wamp64\bin\apache\apache2.4.27\bin>

regarding the error message
I checked the phpinfo() file here I found the following location for openssl.conf :
c:/usr/local/ssl/openssl.cnf
though this is not really a dir location on my c-disk and also not on my A: volume

How to solve this problem? I really want a SSL connection for my virtual hosts so please help

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>