Luk*_*ane 3 windows-7 certificate microsoft-outlook-2010
我正在尝试在 Windows 7 下为 Outlook 2010 创建 S/MIME 签名证书。我已经进入选项?信任中心(见下文)尝试设置它,但是当我尝试选择签名证书时,我收到一条错误消息:“没有可用的证书”。
如何创建用于签署电子邮件的自签名证书?
为此,我使用了 Microsoft 工具makecert。
首先,您需要创建一个 CA(证书颁发机构)密钥:
makecert -pe -n "CN=My Root CA" -ss root -a sha512 -sky signature -len 2048 -h 1 -cy authority -r my_ca.cer
# -pe: Mark private key as exportable - useful for backup.
# -n "CN=My Root CA": The name of the certificate. Please use an individual name and replace the "My" with your full name.
# -ss root: The store where makecert shall place the certificate (Root certificates store).
# -a sha512: The signature algorithm to use. Right now SHA512 is the maximum available.
# -sky signature: The key type (signature, not exchange).
# -len 2048: Key length in bits. You might consider generating a longer key.
# -h 1: Maximum height of the tree below this certificate. I don't use sub-CAs, so I hope that 1 is the correct value.
# -cy authority: Certificate type is CA, not end-entity.
# -r: Create a self signed certificate.
# my_ca.cer: Name of the file to which the generated public key will be written.
Run Code Online (Sandbox Code Playgroud)
现在您需要创建用于邮件签名的证书。在您的情况下,您将仅从一张证书开始:
makecert -pe -n "E=my.mail@addre.ss,CN=My eMail Signing" -a sha512 -sky exchange -cy end -ss my -eku 1.3.6.1.5.5.7.3.4 -in "My Root CA" -is root -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -len 2048 my_email.cer
# -pe:Mark private key as exportable - useful for backup.
# -n "E=my.mail@addre.ss,CN=My eMail Signing": Name of the certificate. This must contain your mail address in the E entry and your name in the CN entry. You should give a useful CN, so please replace My with your full name.
# -a sha512: The signature algorithm to use. Right now SHA512 is the maximum available.
# -sky exchange: The key type (exchange, not signature).
# -cy end: Certificate type is end-entity, not CA.
# -ss my: The store where makecert shall place the certificate (My certificates store).
# -eku 1.3.6.1.5.5.7.3.4: Enhanced key usage "E-mail protection"
# -in "My Root CA": Name of the CA used to sign the generated key. Must be the same as given in "-n" in the above call to makecert.
# -is root: Store where the CA key can be found.
# -sp "Microsoft RSA SChannel Cryptographic Provider": Name of the CryptoAPI provider to use.
# -sy 12: Type of the CryptoAPI provider.
# -len 2048: Key length in bits. You might consider generating a longer key.
# my_email.cer: Name of the file to which the generated public key will be written.
Run Code Online (Sandbox Code Playgroud)
私钥和公钥将写入用户的证书存储区(在注册表中)并可立即使用。公钥将被写入给定的文件。
在您的计算机上,您可以立即在邮件程序中选择邮件签名证书。要将您的公钥提供给其他人,您可以向他们提供您的公钥的副本。为了完全信任,他们可能需要将您的 CA 密钥导入到他们的证书存储中。
| 归档时间: |
|
| 查看次数: |
8330 次 |
| 最近记录: |