加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
doc.go 803 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gareth Watts 提交于 2015-09-26 22:06 . Initial commit
// Copyright 2015 Gareth Watts
// Licensed under an MIT license
// See the LICENSE file for details
/*
Package rootcerts provides a Go conversion of Mozilla's certdata.txt
file, extracting trusted CA certificates only.
It was generated using the gencerts tool using the following command line:
gencerts -download -target rootcerts.go -package rootcerts
This package allows for the embedding of root CA certificates directly into
a Go executable, reducing or negating the need for Go to have access to root
certificates provided by the operating system in order to validate certificates
issued by those authorities.
Root certificates can be accessed through this package, or may be easily installed
into the http package's DefaultTransport by calling UpdateDefaultTransport.
*/
package rootcerts
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化