unable to get local issuer certificateunable是什么意思思

你的位置: >
> Git提交时发生SSL certificate problem错误的解决方法
这两天,不知道为什么,用Git提交代码到服务器时,总出现SSL certificate problem: unable to get local issuer certificate while accessing错误。在网上找了一下,发现解决的方法有以下几个:
如果你是用命令行提交的,可以用以下命令设置临时环境变量GIT_SSL_NO_VERIFY。
Windows下:
set GIT_SSL_NO_VERIFY=true git push
env GIT_SSL_NO_VERIFY=true git push
设置好之后,然后用Git提交。
当然,你也可以把GIT_SSL_NO_VERIFY设置成非临时环境变量,这样就不用每次提交都要执行上面的命令了。
你也可以在命令行执行以下命令,之后再提交。
git config --global http.sslVerify false
参考地址:
转载请注明: &
与本文相关的文章PHP cURL https SSL certificate problem: unable to get local issuer certificate 解决方案 | Edison's Blog
PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法:只要设置以下两个属性就可以解决。
将 CURLOPT_SSL_VERIFYPEER 设置为 false,
将 CURLOPT_SSL_VERIFYHOST 设置为 false.
代码如下:
$cURL = curl_init();
= 'http://www.congcong.us/';
curl_setopt_array(
CURLOPT_URL =& $url,
CURLOPT_REFERER =& $url,
CURLOPT_AUTOREFERER =& true,
CURLOPT_RETURNTRANSFER =& true,
CURLOPT_SSL_VERIFYPEER =& false,
CURLOPT_SSL_VERIFYHOST =& false,
CURLOPT_CONNECTTIMEOUT =& 1,
CURLOPT_TIMEOUT =& 30,
CURLOPT_USERAGENT =& 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0. Safari/537.36'
//其他代码...
您可能也喜欢:
今日突然之间PHP的环境不好使了,打开什么页面都是502错误,查看日志错误如下:
10:29:39 [error] : *7 upstream prematurely closed c...
Squid代理缓存技术
页面静态化缓存
Sphinx搜索加速
Squid反向缓存-动静分离
1、什么是静态数据?
静态页面、图片/flash、css文件、js文件
网络发展与运营的同时,用户量、数据量、访问量都在不断地增长,每个快速发展的网站都将面临执行效率、高访问、高并发和高度复杂的数据处理等问 题。传统网...Validating a Certificate Path with OpenSSLCryptography Tutorials - Herong's Tutorial Examples - Version 5.22, by Dr. Herong Yang
Validating a Certificate Path with OpenSSL
This section provides a tutorial example on how to perform validation of a certificate path with the 'openssl verify' command.
With 4 certificates created in the previous section, we are ready to test the "openssl verify" command:
1. Verify the shortest certification path, one certificate only:
&openssl verify herong.crt
herong.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=Herong Yang
error 18 at 0 depth lookup:self signed certificate
&openssl verify -CAfile herong.crt herong.crt
herong.crt: OK
&openssl verify john.crt
john.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=John Smith
error 20 at 0 depth lookup:unable to get local issuer certificate
&openssl verify -CAfile john.crt john.crt
john.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=John Smith
error 20 at 0 depth lookup:unable to get local issuer certificate
Note that:
You will get an OK with an error, when validating a self-signed certificate without specifying it as the CA certificate.
You will get a perfect OK, when validating a self-signed certificate with the CA certificate specified as itself.
You will get an error, when validating a non self-signed certificate with or without specifying it as the CA certificate.
2. Verify certification paths of two certificates:
&openssl verify -CAfile herong.crt john.crt
john.crt: OK
&openssl verify -CAfile herong.crt bill.crt
bill.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=Bill White
error 20 at 0 depth lookup:unable to get local issuer certificate
&openssl verify -CAfile john.crt bill.crt
bill.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=John Smith
error 2 at 1 depth lookup:unable to get issuer certificate
Note that:
Test 1: Perfect.
Test 2: Path broken at 0 depth. Could not find the issuer on bill.crt.
Test 3: Path broken at 1 depth. Could not find the issuer on john.crt.
3. Verify certification paths of many certificates:
&openssl verify -CAfile herong.crt -untrusted john.crt bill.crt
bill.crt: OK
&openssl verify -CAfile herong.crt -untrusted bill.crt tom.crt
tom.crt: /C=CN/ST=PN/L=LN/O=ON/OU=UN/CN=Bill Gate
error 20 at 1 depth lookup:unable to get local issuer certificate
&copy john.crt+bill.crt all.crt
&openssl verify -CAfile herong.crt -untrusted all.crt tom.crt
tom.crt: OK
Note that:
Test 1: Perfect.
Test 2: Path broken at 1 depth. Could not find the issuer on bill.crt.
Test 3: Perfect. Look at how I join two certificates file together with the DOS command "copy".
Last update: 2013.
Table of Contents
Validating a Certificate Path with OpenSSL - Updated in 2014, by Dr. Herong Yang

我要回帖

更多关于 issuer 的文章

 

随机推荐