Como emitir e gerar o certificate request
Gerar o certificado
Criar Diretório: mkdir ~/domain.com.ssl
Gerar RSA: openssl genrsa -out ~/domain.com.ssl/domain.com.key 2048
Gerar CSR: openssl req -new -sha256 -key ~/domain.com.ssl/domain.com.key -out ~/domain.com.ssl/domain.com.csr
Exemplo
Criar Diretório: mkdir ~/jcr2.ifsp.edu.br.ssl
Gerar RSA: openssl genrsa -out ~/jcr2.ifsp.edu.br.ssl/jcr2.ifsp.edu.br.key 2048
Gerar CSR:openssl req -new -sha256 -key ~/jcr2.ifsp.edu.br.ssl/jcr2.ifsp.edu.br.key -out ~/jcr2.ifsp.edu.br.ssl/jcr2.ifsp.edu.br.csr
As seguintes perguntas serão feitas (respostas abaixo):
You are about to be asked to enter information that will be incorporated into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:BR
State or Province Name (full name) [Some-State]:SP
Locality Name (eg, city) []:Sao Paulo
Organization Name (eg, company) [Internet Widgits Pty Ltd]:INSTITUTO FEDERAL DE EDUCACAO, CIENCIA E TECNOLOGIA DE SAO PAULO
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:jcr2.ifsp.edu.br
Email Address []:
Please enter the following 'extra' attributes to be sent with your certificate request
A challenge password []:
An optional company name []:
Após gerar e enviar o CSR para a Reitoria, você deverá baixar o novo certificado intermediate e root no site do ICPEdu: LINK
Para facilitar, segue os links de download tirados do site:
"gs_root.pem" LINK_DE_DOWNLOAD
"intermediate-2020.intermediate.pem" LINK_DE_DOWNLOAD
Certificados emitidos a partir de 27/11/2020 devem obrigatoriamente utilizar o novo "intermediate.pem" citado acima.
Para fins de registro, segue abaixo o conteúdo dos arquivos:
gs_root.pem
-----BEGIN CERTIFICATE-----
MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G
A1UECxMXR2xvYm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