快捷导航
众所周知,浏览器访问部署有SSL数字证书站点时会给予一把锁的提示,其中如果是部署有有效EVSSL证书时,还会使地址栏变为绿色,

01.png

今天,笔者就以数字证书签发机构StartCom官网为例,为大家介绍一下如何手工开启/关闭绿色地址栏的效果。

2017年4月10日,StartCom上线新站点(原站点 https://www.startssl.com,新站点 https://www.startcomca.com),以当前这两个站点部署的SSL证书和微软的根证书策略,访问前者会出现绿色地址栏效果,而访问后者不会,直观感觉与OVSSL无异(只有一把锁的标识)。

02.png

03.png

两份SSL证书PEM编码及其完整证书链分别如下:

-----BEGIN CERTIFICATE-----
MIIJMDCCCBigAwIBAgIQV1nviKPietRjHZZk8sy26zANBgkqhkiG9w0BAQsFADB4
MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMg
U3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxJjAkBgNVBAMTHVN0YXJ0
Q29tIENsYXNzIDQgRVYgU2VydmVyIENBMB4XDTE2MDQyODAzNTIyOVoXDTE4MDQy
ODAzNTIyOVowggEcMRMwEQYLKwYBBAGCNzwCAQMTAklMMRgwFgYLKwYBBAGCNzwC
AQIMB0hhRGFyb20xFjAUBgsrBgEEAYI3PAIBAQwFRWlsYXQxHTAbBgNVBA8MFFBy
aXZhdGUgT3JnYW5pemF0aW9uMRIwEAYDVQQFEwk1MTM3NDczMDMxCzAJBgNVBAYT
AklMMRAwDgYDVQQIDAdIYURhcm9tMQ4wDAYDVQQHDAVFaWxhdDEOMAwGA1UEEQwF
ODgwMDAxEzARBgNVBAkMCkhhIFNhcGFuIDUxMTAvBgNVBAoMKFN0YXJ0Q29tIEx0
ZC4gKFN0YXJ0IENvbW1lcmNpYWwgTGltaXRlZCkxGTAXBgNVBAMMEHd3dy5zdGFy
dHNzbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCavY8UhEP3
cYL+t/W+sQSVom5z0jFWKOxmUyg4u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XaLfDfyqd2h9
0o2xtxrbPSSEVYSs1TtYucGb/8iaYqs52tn39s5/aKl1VUI0eWG4KnxaQmQy/ZH3
YQ0Gr8wpo1a0JjrA7yM26mKiYcQNvew3IeXqBZFMEiEHv2GrzNUcRjMH+8+V1zV3
A2t3egyxhiV/GZlSEz+IBWsacppvDeJCzJjYzgXf6KlUREmc2hhrMn9lmCDcquva
q9nWTQxALJ8xeJCNKzFCoHU6rdyVrbUlyrzmvd8LF6TNVuzNDrfJR+TqprpKqOFU
05Ad9y0+2ZzMsg/M0Z20ZKCe9fjAqu6qTTsJ
-----END CERTIFICATE-----

05.png

下面动手操作如何把 https://www.startcomca.com 的访问效果变为有绿色地址栏。

1、进入“证书管理器”(certmgr.msc,Windows 10系统优先选择 certlm.msc),在“受信任的根证书颁发机构”中找到证书“Chambers of Commerce Root - 2008”(如果没有该证书,在系统未开启“关闭自动根证书更新”(系统默认值)的前提下,可访问 https://www.startcomca.com,系统会自动装载根证书“Chambers of Commerce Root - 2008”);

2、打开证书,选择“详细信息”标签卡,“编辑属性”;

06.png

3、“扩展的验证”标签卡;

07.png

4、添加EV策略对象标识符(EV Policy OID):“2.23.140.1.2.2”;

08.png

5、确定,退出证书属性编辑窗口;

6、再次访问 https://www.startcomca.com 即可见绿色地址栏效果。

09.png

后记:笔者对数字证书的应用研究还很浅显,班门弄斧总是不好的,故本文不涉及EV数字证书(Class 4)技术规范、应用原理,只是介绍大家一个方法,对于部分可实现绿色地址栏效果的站点如果未出现绿色地址栏该如何做;为何需添加OID:2.23.140.1.2.2,其它的数值可不可以,笔者也非常希望和大家交流,也期待大牛不吝赐教。

P.S. 本例中,关闭绿色地址栏效果的方法就是:删除“Chambers of Commerce Root - 2008”EV Policy OID:“2.23.140.1.2.2”。
举报 使用道具
| 回复

共 2 个关于如何手工开启/关闭浏览器访问部署有SSL证书站点时的绿色地址栏效果?的回复 最后回复于 2017-4-18 14:12

ikimi 版主 发表于 2017-4-13 22:11:54 | 显示全部楼层
写了一个小程序,添加相应OID,用以实现绿色地址栏效果,无需再手工添加
http://vdisk.weibo.com/s/sUMrV7uWcyfh
举报 使用道具
WS_Daniel 新手上路 发表于 2017-4-18 14:12:09 | 显示全部楼层
不错。
举报 使用道具
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

发新帖

版块推荐百宝箱

快速回复 返回顶部 返回列表