Forked from claudiainbytes/gist:1407f3ed15df9e9823758d4a96ecf6d6
Created
February 10, 2019 11:59
-
-
Save spuglisi/31f979d365672f9a8ea7bd8a0bde3932 to your computer and use it in GitHub Desktop.
openssl for mac osx xampp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#open ssl | |
sudo openssl genrsa -out localhost.key 2048 | |
sudo openssl req -new -x509 -key localhost.key -out localhost.crt -days 3650 -subj /CN=localhost | |
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt | |
... | |
#http-ssl.conf | |
SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/localhost.crt" | |
#SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl.crt/server.crt" | |
.... | |
SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/localhost.key" | |
#SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/ssl.key/server.key" | |
sudo openssl genrsa -des3 -out certs/komodoapp.key 2048 | |
sudo openssl req -new -key certs/komodoapp.key -out certs/komodoapp.csr | |
sudo openssl x509 -req -days 3650 -in certs/komodoapp.csr -signkey certs/komodoapp.key -out certs/komodoapp.crt | |
Fuente: https://www.enmimaquinafunciona.com/pregunta/26966/como-crear-facilmente-un-certificado-ssl-y-configurar-apache2-en-mac-os-x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment