配置私人CA

來源:互聯網
上載者:User

標籤:etc   private   new   申請認證   ace   資訊   pki   nss   不能   

配置私人CA

CA配置資訊 /etc/pki/tls/openssl.cnf

1, 建立所需要的檔案

Touch /etc/pki/CA/index.txt 存放認證資料庫檔案,需要手工建立

Echo 01 > /etc/pki/CA/serial 指定16位進位的認證標號

2.centos7上搭建CA先產生私密金鑰

(umask 066;openssl genrsa -out private/cakey.pem -des 2048)

3 openssl req -new -x509 -key /etc/pki/CA/private/cakey.pem(自己私密金鑰地址) -days 7300 -out /etc/pki/CA/cacert.pem(產生的認證地址)

產生自我簽署憑證

req 請求

-x509自我簽署憑證

加這個表示自己給自己簽名

不加這個 表示申請認證

4用戶端申請認證,自己先要有私密金鑰檔案

最終centos6用戶端會有3個檔案,一個私密金鑰檔案,一個申請檔案,一個頒發的認證

申請的認證一般放在應用的目錄下例如conf.d

產生私密金鑰 (umask066;openssl genrsa -out app.key 1024)

產生認證申請 openssl req -new -key app.key -out app.pem 時間和x509都可以不用添加

將認證申請傳到CA(centos7伺服器)

Scp

5 CA產生認證

openssl ca -in app.csr -out certs/app.crt -days 730

-out後跟產生認證的地址,設定檔規定的不能變

不能缺 touch index.txt

編號 echo 01 > serial 都是在CA目錄下

配置私人CA

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.