diff --git a/TutorialCertificado.md b/TutorialCertificado.md new file mode 100644 index 0000000..dec3b32 --- /dev/null +++ b/TutorialCertificado.md @@ -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 + +## \ No newline at end of file diff --git a/certificate.p12 b/certificate.p12 new file mode 100644 index 0000000..54aa6ac Binary files /dev/null and b/certificate.p12 differ