How to sign an IIS SSL certificate request using OpenSSL

本文介绍如何使用OpenSSL工具包为IIS/ADAM生成并签署SSL证书请求。整个过程分为五个步骤:创建目录放置证书请求文件;生成CA的RSA私钥;为CA生成证书;使用CA签署IIS证书请求;最后重启IIS证书向导完成安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://blog.dzhuvinov.com/?p=738

How to sign an IIS SSL certificate request using OpenSSL

The OpenSSL toolkit can be used to sign IIS / ADAM certificate requests. This is done in 5 steps:

1. Create a directory and put the certificate request file certreq.txt in it. This file is typically generated by the IIS Certificate Wizard.

2. Generate an RSA private key for your certificate authority (CA). You will be prompted to enter a password to protect the key.

openssl genrsa -des3 -out cakey.pem 2048

3. Using the above private key generate a certificate for your certificate authority (CA). You will be prompted to enter a few details about your CA, such as organisation name.

openssl req -new -key cakey.pem -x509 -days 1825 -extensions v3_ca -out ca.crt

4. Finally, use your certificate authority (CA) to sign the IIS certificate request. It will be marked valid for 365 days.

openssl x509 -req -days 365 -in certreq.txt -CA ca.crt -CAkey cakey.pem -CAcreateserial -out iis.cer

5. Restart the IIS Certificate Wizard and pass the signed certificate iis.cer to it.

Done!



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值