[英]Ubuntu openssl not asking for Common Name
I have Ubuntu 12.04.5 LTS and OpenSSL 1.0.1 versions installed.我安装了 Ubuntu 12.04.5 LTS 和 OpenSSL 1.0.1 版本。 I want to generate a CSR for SSL and when I run,
我想为 SSL 生成一个 CSR,当我运行时,
openssl genrsa -out domain.key 2048
I get following output,我关注 output,
Generating RSA private key, 2048 bit long modulus
..+++
.......................+++
e is 65537 (0x10001)
and it doesn't ask for Common Name or anything and generates a key.并且它不要求通用名称或任何内容并生成密钥。 What's causing this problem?
是什么导致了这个问题? Thanks
谢谢
The command you issued is doing exactly what you have asked, it is to say to generate a 2048 private key.您发出的命令完全按照您的要求执行,也就是说生成一个 2048 私钥。
Now you need to generate a CSR (a request certificate) where you will have to provide the required information including of course the CN.现在您需要生成一个 CSR(请求证书),您必须在其中提供所需的信息,当然包括 CN。
Try adding尝试添加
openssl req -new -key <MyPrivate.key> -out <MyRequest.csr>
where you need to replace <MyPrivate.key>
with the filename of your private key generated in the previous step and <MyRequest.csr>
is the filename of the certificate request.您需要将
<MyPrivate.key>
替换为上一步中生成的私钥文件名, <MyRequest.csr>
是证书请求的文件名。 This csr must be sent to the certificate authority for validation and signature.此 csr 必须发送给证书颁发机构进行验证和签名。
I hope it helps我希望它有帮助
cheers干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.