[บันทึกกันลืม] แก้ปัญหา server certificate verification failed บน gitlabs

ปัญหาคือ: จะ git push จาก Linux/Ubuntu มาเก็บใน gitlabs ขององค์กร

git push -u origin master

แต่ติดปัญหาว่า

fatal: unable to access 'https://gitlab.xxx.xxx.xxxx/userid/repo.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

วิธีแก้ปัญหา (แบบรีบ ๆ)

git config --global http.sslVerify false

ก็จะใช้งานได้แล้ว

*** เออ “ก็ง่าย ๆ” แต่ไม่มีบอกไว้ให้หาง่าย ๆ นิ ***

Share the Post:

Related Posts

PSU One Passport (Authentik)

Post Views: 58 คลิก “ลงชื่อเข้าใช้ด้วย PSU PASSPORT” จะได้หน้าดังภาพ เมื่อได้หน้านี้มี 2 ทางเลือกคือ

Read More