Gerar requisição (CRS)
Comando para gerar a chave e a requisição:
openssl req -new -newkey rsa:2048 -keyout cert1.key -out cert1.csr
É necessário preencher apenas o Common Name:
Generating a 2048 bit RSA private key
...................+++
.......................................................+++
writing new private key to 'cert1.key'
Enter PEM pass phrase:<informe a senha de proteção da chave privada>
Verifying - Enter PEM pass phrase:<confirme a senha>
-----
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) []: .
State or Province Name (full name) []: .
Locality Name (eg, city) []: .
Organization Name (eg, company) []: .
Organizational Unit Name (eg, section) []: .
Common Name (eg, fully qualified host name) []:cert1
Email Address []: .
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: .
Importante: Anote a senha de proteção da chave privada emum local seguro. Não é possível recuperar essa senha posteriormente, e sem ela não será possível utilizar o certificado digital após a emissão.
Se quiser verificar os dados presentens na requisição, execute o comando:
openssl req -noout -text -in cert1.csr
O conteúdo do arquivo cert1.csr deve ser informado no campo CSR .
Last updated