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.pem" para ser utilizado em conjunto com o certificado que você receberá: LINK_DE_DOWNLOAD
Se ainda não possuir, você também deve baixar o "gs_root.pem" LINK_DE_DOWNLOAD
Certificados emitidos a partir de 27/05/201907/07/2020 devem obrigatoriamente utilizar o novo "intermediate.pem" citado acima.
Renomeie o arquivo para "intermediate.pem" caso você só utilize certificados gerados a partir da data acima.
Para fins de registro, segue abaixo o conteúdo dos arquivos:
gs_root.pem
-----BEGIN CERTIFICATE-----
MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwD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