使用VBA将现有证书(数字签名)导入Microsoft Word 2013中的文档 [英] Importing existing certificate(digital signature) into a document in Microsoft Word 2013 using VBA

查看:138
本文介绍了使用VBA将现有证书(数字签名)导入Microsoft Word 2013中的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我需要使用VBA将本地计算机中安装的证书导入Word文档。但是当我转到Tools-> Digital Signature时,证书不会出现在证书列表中。有一个名为Choose的选项,但是当
点击时我收到如下错误信息:

I need to import a certificate which is installed in my local computer into a word document using VBA. But when I go to Tools->Digital Signature , the certificate does not appear in the list of certificates . There is an option called Choose but when I click that I get an error message as follows:

"没有可用的签名证书。请插入您的智能卡或联系系统管理员以获取签名证书。"

"No usable signing certificates are available. Please insert your smart card or contact system administrator to obtain a signing certificate."

但我本地的证书是有效的证书。有人请帮助<

But the certificate in my local is a valid certificate. Someone please help

推荐答案

嗨bvidhyaa

Hi bvidhyaa

什么样的这是证书吗?有不同的种类。为了在工具/数字签名中使用它,它需要特别是CODE签名证书。还有一种可以用来对文档进行数字签名,可以在文档中使用
,以便让人们知道您个人认可该文档的内容。但是这样的证书不能用于签署VBA代码。

What kind of certificate is this? There are different kinds. In order to use one in Tools/Digital Signature it would need to specifically be a CODE signing certificate. There's also a kind that can be used to digitally sign documents, which could be used inside the document in order to let people know that you, personally, endorse the document's content. But such a certificate cannot be used to sign VBA code.


这篇关于使用VBA将现有证书(数字签名)导入Microsoft Word 2013中的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆