Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 09, 2024 08:01PM

openssl genrsa -out myCA.key 2048

ok


openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1024 -out myCA.pem

Can't open "openssl.cnf" for reading, No such file or directory
D0200000:error:80000003:system library:BIO_new_file:No such process:crypto\bio\bss_file.c:67:calling fopen(openssl.cnf, r)
D0200000:error:10000080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:75:

why please?

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 09, 2024 08:28PM

I had to create the path .../apache24/conf/
and then copy these files to it
libcrypto-3-x64.dll
libssl-3-x64.dll
openssl.cnf
openssl.exe
after that everything works
I wonder if Otomatic knows about it and that it's supposed to be like that?

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: Otomatic (Moderator)
Date: October 10, 2024 08:41AM

> I had to create the path .../apache24/conf/

apache24 is for direct Apache installations. For Wampserver, if installed in c:/wamp64/, it's :

c:/wamp64/bin/apache/apache2.4.62.1/conf/

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: Otomatic (Moderator)
Date: October 10, 2024 04:41PM

Assuming that Wampserver is installed in e:wamp64, it is also possible to create a symbolic link to the Apache folder:

mklink /D c:\apache24\ e:\wamp64\bin\apache\apache2.4.62.1\

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 12, 2024 08:12PM

thank you,
but would I have to link to all files that the error requires or just this folder?



Edited 1 time(s). Last edit at 10/12/2024 08:13PM by czujnik.

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: Otomatic (Moderator)
Date: October 13, 2024 10:13AM

A symbolic link on a folder, in other words a junction, means that when you use the c:\apache24\ folder, it's as if you were using the target folder.

On the other hand, putting all the files in c:\apache24\ is not normal, as openssl.cnf is originally in c:\apache24\conf\ and the other files ibcrypto-3-x64.dll, libssl-3-x64.dll, openssl.exe are in c:\apache24\bin

If you have to put everything in the same folder, your procedure is badly written.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 14, 2024 12:04AM

but this is a wamp installation error,
after installation while generating a certificate, from the C:\wamp64\bin\apache\apache2.4.59\bin> folder, before creating c:\apache24\conf\ and copying the files, an error appears and the certificate cannot be generated, so either I have to create what I did or mklink like you write



Edited 3 time(s). Last edit at 10/14/2024 12:08AM by czujnik.

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: Otomatic (Moderator)
Date: October 14, 2024 08:51AM

> but this is a wamp installation error

NO !

See How to activate https SSL in Wampserver

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 10/14/2024 04:11PM by Otomatic.

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 14, 2024 06:11PM

I saw it now, super,
full automatic,
I did it all manually so far so don't be surprised,
I reinstalled and did it exactly according to the instructions,
it works
but there is no data editing, and all certificates are signed by your cert,
if someone likes it then ok

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: Otomatic (Moderator)
Date: October 15, 2024 10:01AM

If you want a certificate "certified by a supervisory authority", you're going to have to put your hand in your wallet - it's not cheap!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't open "openssl.cnf" for reading
Posted by: czujnik (---.toya.net.pl)
Date: October 20, 2024 10:16AM

but I'm not talking about that hehe,
for example acme with letsencrypt,
can't you integrate it with wampserver?
and when you add a host, it should change the DNS surfix because it's important, but it doesn't do that,
you can add a checkbox option
I can help

Options: ReplyQuote


Sorry, only registered users may post in this forum.