Skip to content

Commit

Permalink
Merge pull request #14 from AlexiaTuane/revert-8-7-crie-um-certificad…
Browse files Browse the repository at this point in the history
…o-auto-assinado

Revert 8 7 crie um certificado auto assinado
  • Loading branch information
AlexiaTuane authored Aug 2, 2024
2 parents 4f15e83 + 50fdb4f commit 1a75b45
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions TutorialCertificado.md
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 added certificate.p12
Binary file not shown.

0 comments on commit 1a75b45

Please sign in to comment.