Subscribed unsubscribe Subscribe Subscribe

Python, web, Algorithm 技術的なメモ

技術的なメモを書いていきます.pythonistaを目指しています.

BBB ssl エラー git , curl

SSLエラーが出た時の対処法めも

gitremoteサーバに接続しようとしたとき

error:  while accessing https://user_name@git.example.com

fatal: HTTP request failed

requests使った時

requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

以下の通りにするとsslerrorを回避出来ます.

root@beaglebone:~/research# export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
root@beaglebone:~/research# echo $CURL_CA_BUNDLE
/etc/ssl/certs/ca-certificates.crt
root@beaglebone:~/research# ps -p $$
  PID TTY          TIME CMD
  606 pts/0    00:00:00 sh
root@beaglebone:~/research# date
Sat Jan  1 09:28:42 JST 2000
root@beaglebone:~/research# cd
root@beaglebone:~# ls
Desktop  research
root@beaglebone:~# vi .config
root@beaglebone:~# echo $SHELL
/bin/sh
root@beaglebone:~# export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
root@beaglebone:~# reboot
Connection to 192.168.7.2 closed by remote host.

参考

Git and Curl SSL Certificates Configuration on Beaglebone Black