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

wamp3x64 ssl certificate does not exist or is empty (2 replies)

$
0
0
Hi


I have installed wamp3 x64
I have installed Win64OpenSSL-1_0_2h

have found some help in the web for configuring apache and ssl and have fallow this steps:

1 open cmd console with admin privileges
2 cd C:\wamp64\bin\apache\apache2.4.17\bin

3 openssl genrsa -aes256 -out private.key 2048
I have this error: The ordinal 968 could not be located in dynamic link library LIBEAY32.dll

I found some help on the web and I have replaced the libeay32.dll the ssleay.dll and openssl.exe from apache bin with the originals copied from Openssl installation folder

Again step 3
openssl genrsa -aes256 -out private.key 2048
Ok ask for passphrase 2 times OK

4 openssl rsa -in private.key -out private.key
5 openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 -config C:\wamp64\bin\apache\apache2.4.17\conf\openssl.cnf

Now y have certificate.cert and private.key in apache.../bin

6 I have copied both in apache.../conf/key

7 I have uncoment this in httpd.conf
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

8 uncoment in php.ini
extension=php_openssl.dll

9 In httpd-ssl.conf
uncoment
<VirtualHost _default_:443>

modify (edit)
DocumentRoot "C:/wamp64/www"
ServerName localhost:443
ServerAdmin admin@mi_site.com
ErrorLog "C:/wamp64/bin/apache/apache2.4.17/logs/ssl_error.log"
TransferLog "C:/wamp64/bin/apache/apache2.4.17/logs/ssl_access.log"

SSLCertificateFile "C:/wamp64/bin/apache/apache2.4.17/conf/key/certificate.cert"
SSLCertificateKeyFile "C:/wamp64/bin/apache/apache2.4.17/conf/key/private.key"

CustomLog CustomLog "C:/wamp64/bin/apache/apache2.4.17/logs/ssl_request.log" ...



10 Try to check if evrithig ok
httpd -t

Have this error:
AH00526: Syntax error on line 144 of C:/wamp64/bin/apache/apache2.4.17/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file 'C:/wamp64/bin/apache/apache2.4.17/conf/key/certificate.cert' does not exist or is empty

Someone know how I can to solve this ? What I does wrong ?

Thank you

Viewing all articles
Browse latest Browse all 3177

Trending Articles



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