-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from AlexiaTuane/revert-8-7-crie-um-certificad…
…o-auto-assinado Revert 8 7 crie um certificado auto assinado
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Instala OpenSSL | ||
|
||
* sudo apt-get install openssl | ||
|
||
## Gerar uma Chave Privada | ||
* openssl genpkey -algorithm RSA -out key.pem -aes256 | ||
|
||
## Gerar um Certificado Autoassinado | ||
|
||
* openssl req -new -x509 -key key.pem -out CertificadoDigital.pem -days 365 | ||
|
||
## Converte para formato PKCS12 (PFX) | ||
|
||
* openssl pkcs12 -export -in CertificadoDigital.pem -inkey key.pem -out certificate.p12 -name "CertificadoAlexia" | ||
|
||
## Verifica o conteúdo do PKCS12 | ||
|
||
* openssl pkcs12 -info -in certificate.p12 | ||
|
||
## |
Binary file not shown.