We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问这样如何?能否支持获取proxy使用的根证书。
func (proxy *Proxy) GetCertificate() x509.Certificate { return proxy.interceptor.ca.RootCert }
类似这样,因为我想在创建proxy之后,使用系统api加载证书到证书列表里,用户只需要允许操作即可。
p, err := proxy.NewProxy(opts) if err != nil { log.Fatal(err) } p.AddAddon(&modifyResponse) // 检查系统是否导入代理ca证书 existCa, err := loadSystemRoots() if err != nil { log.Fatal(err) } if !existCa { addCertificate(p.GetCertificate()) // 这里 }
如果不支持,就是书写类似cert.load函数,加载一次。
cert.load
The text was updated successfully, but these errors were encountered:
你的意思是添加GetCertificate这个方法吗,你可以提交pr过来
这个功能:在创建proxy之后,使用系统api加载证书到证书列表里,用户只需要允许操作即可,你可以添加一个启动参数例如是否自动信任证书,然后添加功能,我也可以接受pr
Sorry, something went wrong.
好的,谢谢回复。
No branches or pull requests
请问这样如何?能否支持获取proxy使用的根证书。
类似这样,因为我想在创建proxy之后,使用系统api加载证书到证书列表里,用户只需要允许操作即可。
如果不支持,就是书写类似
cert.load
函数,加载一次。The text was updated successfully, but these errors were encountered: