๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

git push ๋ฌธ์ œ ํ•ด๊ฒฐ - server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

by ๐Ÿงž‍โ™‚๏ธ 2020. 6. 5.
๋ฐ˜์‘ํ˜•

ํšŒ์‚ฌ์—์„œ SSL์ธ์ฆ์„œ๊ฐ€ ๊ฐฑ์‹ ๋˜๋ฉด์„œ ์ƒ๊ธด ๋ฌธ์ œ์˜€๋‹ค.

์ค€๋น„๋ฌผ์€ SSL์ธ์ฆ์„œ๋กœ filename.crt ํ˜•ํƒœ์˜ ์ธ์ฆ์„œ๊ฐ€ ํ•„์š”ํ•˜๋‹ค.

๊ทธ๋ฆฌ๊ณ  ๋‹ค์Œ์˜ ๋ช…๋ น์ค„๋“ค์„ ์ž…๋ ฅํ•˜๋ฉด ๋!

sudo cp filename.crt /usr/local/share/ca-certificates

sudo update-ca-certificates

Updating certificates in /etc/ssl/certs...

1 added, 0 removed; done.

Running hooks in /etc/ca-certificates/update.d...

Adding debian:filename.pem

done.

done.

๋‹ค์‹œ ๋ง‰ํ˜”๋˜ ๊ตฌ๊ฐ„์ธ
git push -u origin master๋ฅผ ์‹คํ–‰ํ•˜๋‹ˆ ์ž˜๋œ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€