草庐IT

certificate-Fingerprint

全部标签

java调用https服务的ip地址报错证书问题解决:SSLPeerUnverifiedException: Certificate fo

问题描述:java项目调用微信api的域名接口正常:StringwxAccessTokenUrl="https://api.weixin.qq.com/cgi-bin/token?";因项目要求采用ip访问外部服务,所以pingapi.weixin.qq.com得到域名对应的ip为101.91.37.13,所以替换java调用api接口为:"https://101.91.37.13/cgi-bin/token?";此时项目代码调用api接口为:"https://101.91.37.13/cgi-bin/token?",发出http请求后报错,内容如下:javax.net.ssl.SSLPeer

解决cURL error 60: SSL certificate problem: unable to get local issuer certifica

报错:cURLerror60:SSLcertificateproblem:unabletogetlocalissuercertifica报错原因:因为没有配置信任的服务器HTTPS验证。默认情况下,cURL被设为不信任任何CAs,因此浏览器无法通过HTTPs访问你服务器。一、解决方式下载证书1、放到这里来2、修改php.ini文件,去掉前面“;”路径带上""3、openssl这个扩展开启4、记得重启,不然不生效

GET请求带参数,请求后出现Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] [已解决]

运行python,发送get请求,请求后出现requests.exceptions.SSLError: (CausedbySSLError(SSLCertVerificationError(1,'[SSL:CERTIFICATE_VERIFY_FAILED]certificateverifyfailed:unabletogetlocalissuercertificate(_ssl.c:1129)')))解决办法:importurllib3导包后,将urllib3.disable_warnings()写在首部#encoding:utf-8importrequestsimporturllib3im

c# - 如何创建一个最小的虚拟 X509Certificate2?

我正在对.NET应用程序进行单元测试;一些单元测试涉及以编程方式生成X509Certificate2对象。我不关心实际的签名/私钥/验证的东西,我只是想要一个在检查其字段时不会抛出异常的对象。我尝试使用无参数构造函数,但随后一大堆字段在访问时抛出异常。正如在调试器中所见:SubjectName='(newSystem.Collections.Generic.Mscorlib_CollectionDebugView(result.Certificates)).Items[0].SubjectName'引发了类型为'System.Security.Cryptography.Cryptogr

c# - 如何创建一个最小的虚拟 X509Certificate2?

我正在对.NET应用程序进行单元测试;一些单元测试涉及以编程方式生成X509Certificate2对象。我不关心实际的签名/私钥/验证的东西,我只是想要一个在检查其字段时不会抛出异常的对象。我尝试使用无参数构造函数,但随后一大堆字段在访问时抛出异常。正如在调试器中所见:SubjectName='(newSystem.Collections.Generic.Mscorlib_CollectionDebugView(result.Certificates)).Items[0].SubjectName'引发了类型为'System.Security.Cryptography.Cryptogr

[vite] http proxy error: Error: self signed certificate in certificate chain vite 代理报错如何破

使用vite,为了防止请求接口的时候出现跨域问题,所以使用了vite的proxy进行配置。比如请求接口的地址是https://172.1.1.0:8080,那么vite的配置信息如下:...server:{host:'0.0.0.0',port:12000,proxy:{'/local/':{target:'https://172.1.1.0:8080',changeOrigin:true,rewrite:(path)=>path.replace(/^\/local\//,''),},},},...本地请求是所有的接口前边只需要加一个前缀即可——/local/。比如登录接口就是‘/local/

[vite] http proxy error: Error: self signed certificate in certificate chain vite 代理报错如何破

使用vite,为了防止请求接口的时候出现跨域问题,所以使用了vite的proxy进行配置。比如请求接口的地址是https://172.1.1.0:8080,那么vite的配置信息如下:...server:{host:'0.0.0.0',port:12000,proxy:{'/local/':{target:'https://172.1.1.0:8080',changeOrigin:true,rewrite:(path)=>path.replace(/^\/local\//,''),},},},...本地请求是所有的接口前边只需要加一个前缀即可——/local/。比如登录接口就是‘/local/

解决ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

问题原代码:asyncdefcall_wss_api(msg):asyncwithwebsockets.connect('wss://xxx.com/tool/handle')aswebsocket:awaitwebsocket.send(msg)response=""count=0whilewebsocket.open:response=awaitwebsocket.recv()returnresponse执行代码时,发现会报错:ssl.SSLCertVerificationError:[SSL:CERTIFICATE_VERIFY_FAILED]certificateverifyfaile

elastic-agent安装报错“Fleet Server - Error - x509: certificate signed by unknown authority

elasticssearch版本8.4.3根据官网的提示https://www.elastic.co/guide/en/fleet/8.4/fleet-troubleshooting.html#agent-enrollment-certs出现这种问题需要增加参数--insecureTofixthisproblem,passthe --insecure flagalongwiththe enroll or install command. ./elastic-agentinstall --fleet-server-es=https://192.168.0.180:9200 --fleet-ser

Nginx配置证书报错nginx: [emerg] cannot load certificate “../software/nginx/zhifu.pem“: BIO_new_file() fail

本人在Nginx配置完证书 重启时报错:不能加载证书:nginx:[emerg]cannotloadcertificate"../software/nginx/zhifu.pem":BIO_new_file()failed(SSL:error:02001002:systemlibrary:fopen:Nosuchfileordirectory:fopen('../software/nginx/zhifu.pem','r')error:2006D080:BIOroutines:BIO_new_file:nosuchfile)我个人遇到的问题是:我把我实际证书放的位置是 ../software/n