
SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/ssl/localhost. SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl/localhost.crt" Open /Applications/XAMPP/xamppfiles/etc/extra/nfĭocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

Close the window and click Update Settings.Expand Trust, select When using this certificates: Always Trust.Find & double click on localhost cert in Keychain Access.Double click on localhost.crt on Finder.Create SSL CRT openssl x509 -req -sha256 -extfile localhost.ext -days 3650 -in localhost.csr -signkey localhost.key -out localhost.crt 8. KeyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment Note: change localhost to your localhost domain name setup of putting all the php code within the /Applications/XAMPP/xamppfiles/htdocs in OSX is. ext file touch localhost.extĬopy & paste below content to v3.ext file Set XAMPP environment variable on MAC OS X tech amigos. Leave these info BLANK (just Enter, no need input anything) 6. Organizational Unit Name (eg, section) :VNĬommon Name (e.g. Note: change localhost to your localhost domain name (ex: Country Name (2 letter code) :VN You can use any file name here (just replace localhost) openssl req -new -newkey rsa:2048 -nodes -keyout localhost.key -out localhost.csrĮnter info as below. # SSL Virtual Host Context Setup HTTPS/SSL localhost Find this line and remove everything below it.Open /Applications/XAMPP/xamppfiles/etc/extra/nf.


Test SSL config with this command: sudo /Applications/XAMPP/xamppfiles/xampp enablessl 2. Open /Applications/XAMPP/xamppfiles/etc/nf and make sure your settings are the same as below: LoadModule socache_shmcb_module lib/httpd/modules/mod_socache_shmcb.soLoadModule ssl_module modules/mod_ssl.so Open Chrome and access Congratulation! Preparation 1.
