osx - Use https on localhost xampp on mac -
i have been trying use xampp in localhost https.
1/ first step (certificate creation) seems okay. generated crt & key using openssl. using *.frenchpie.com common name.
2/ copied 2 respectively in /etc/ssl.crt/ & /etc/ssl.key/ folders.
3/ did following in httpd-vhosts.conf using found on stackoverflow
<virtualhost *:443> documentroot c:/xampp/htdocs/frenchpie servername local.frenchpie.com sslengine on sslcertificatefile "conf/ssl.crt/frenchpie.crt" sslcertificatekeyfile "conf/ssl.key/frenchpie.key" </virtualhost>
4/ of course restarted xampp
please note did not change else. website main folder "frenchpie" in htdocs. 127.0.0.1 mapped local.frenchpie.com
using http://local.frenchpie.com/frenchpie works usual (homepage). using https://local.frenchpie.com/frenchpie gives me certificate error (see picture).
any appreciated.
if generate certificate openssl, when visit page browser have error message because create own certificate.
all browsers have root certificates default (symantec, comodo etc). when visit website https, check if certificate generate of default root certificates. can add new root certificates browser.
if want public website going need trusty certificate, need buy one.
Comments
Post a Comment