Last active
October 20, 2015 11:47
-
-
Save lnoering/f20f8b3476ab409c647f to your computer and use it in GitHub Desktop.
Criar Certificado SSL para Desenvolvimento Local!
This file contains 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
## Install OpenSSL ## | |
yum install openssl openssl-deve | |
## Criar a pasta para criar os arquivos ## | |
mkdir ~/domain.com.ssl/ | |
cd ~/domain.com.ssl/ | |
## Criando o .KEY ## | |
openssl genrsa -out ~/domain.com.ssl/domain.com.key 2048 | |
## Criar o .CSR ## | |
openssl req -new -sha256 -key ~/domain.com.ssl/domain.com.key -out ~/domain.com.ssl/domain.com.csr | |
## Criar o CRT que vai no VHOST ## | |
openssl x509 -req -days 365 -in domain.tld.csr -signkey domain.tld.key -out domain.tld.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment