centos下安裝證書


centos下要跑個https的 request,需要安裝證書,否則代碼上要多寫許多

Linux (CentOs 6)

Add
  1. Install the ca-certificates package:

    yum install ca-certificates

  2. Enable the dynamic CA configuration feature:

    update-ca-trust force-enable

  3. Add it as a new file to /etc/pki/ca-trust/source/anchors/:

    cp foo.crt /etc/pki/ca-trust/source/anchors/

  4. Use command:

    update-ca-trust extract


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM