Skip to content

Instantly share code, notes, and snippets.

@lnoering
Last active October 20, 2015 11:47
Show Gist options
  • Save lnoering/f20f8b3476ab409c647f to your computer and use it in GitHub Desktop.
Save lnoering/f20f8b3476ab409c647f to your computer and use it in GitHub Desktop.
Criar Certificado SSL para Desenvolvimento Local!
## 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