0

I need to create a certificate for my local host

I've created a certificate and copied the certificate in /opt/lamp/ect/ssl.key/sslnewkey.key, /opt/lamp/ect/ssl.crt/sslnewcet.crt.

And added in /opp/lamp/etc/httpd.conf:

LoadModule ssl_module modules/mod_ssl.so

What I do? And Where do I put this:

<VirtualHost *:443>
        DocumentRoot C:/xampp/htdocs/yourProject
        SSLEngine on
        SSLCertificateFile "conf/ssl.crt/server.crt"
        SSLCertificateKeyFile "conf/ssl.key/server.key"
    </VirtualHost>
muru
  • 197,895
  • 55
  • 485
  • 740
stevGates
  • 349

1 Answers1

0

you must change the value of SSLCertificateFile to ssl.crt/server.crt and SSLCertificateKeyFile to ssl.key/server.key. Because relative directory addressing is start from the current folder of config file. also you can change these addresses to absolute type by entering full address.
put this VirtualHost in httpd.conf.