openssl 生成csr_如何使用OpenSSL生成证书签名请求(CSR)?

openssl 生成csr

openssl 生成csr

OpenSSL provides different features about security and certificates. Public and Private Key cryptography also supported by OpenSSL. Websites, Firewalls and other applications uses Certificates in order to encrypt their network traffic or authenticate each other. In this tutorial we will look how to create Certificate Signing Request.

OpenSSL提供有关安全性和证书的不同功能。 OpenSSL还支持公钥和私钥加密。 网站,防火墙和其他应用程序使用证书来加密其网络流量或相互认证。 在本教程中,我们将研究如何创建证书签名请求。

生成RSA密钥 (Generate RSA Key)

Now we assume we do not have any Public and Private Key pair. If we have Public and Private key pair please skip to the second step. RSA is very popular and efficient asymmetric encryption algorithm used by a lot of security mechanisms.We can also use RSA in X509 certificates. In this step we will create create an RSA Private key with PEM format. This key size will be 2048 bit.

现在我们假设我们没有任何公钥和私钥对。 如果我们有公钥和私钥对,请跳至第二步。 RSA是非常流行且高效的非对称加密算法,被许多安全机制使用。我们也可以在X509证书中使用RSA。 在这一步中,我们将创建一个PEM格式的RSA私钥。 密钥大小为2048位。

$ openssl genrsa -out myprivate.pem 2048
Generate RSA Key
Generate RSA Key
生成RSA密钥

证书签名(Certificate Signing)

Certificate signing means an Authority or Certificate Authority have checked provided certificate and signed it with its private key. After that step the entities trust Certificate Authority will see and check the sign of the

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值