国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > Nginx > 正文

nginx配置ssl雙向驗(yàn)證的方法

2024-08-30 12:22:44
字體:
供稿:網(wǎng)友
這篇文章主要介紹了nginx配置ssl雙向驗(yàn)證的方法,需要的朋友可以參考下

1、安裝nginx略

//www.iis7.com/article/49479.htm

2、使用openssl實(shí)現(xiàn)證書中心
由于是使用openssl架設(shè)私有證書中心,因此要保證以下字段在證書中心的證書、服務(wù)端證書、客戶端證書中都相同
Country Name
State or Province Name
Locality Name
Organization Name
Organizational Unit Name

編輯證書中心配置文件
vim /etc/pki/tls/openssl.cnf

[ CA_default ]
dir             = /etc/pki/CA
certs           = $dir/certs            # Where the issued certs are kept
crl_dir         = $dir/crl              # Where the issued crl are kept
database        = $dir/index.txt        # database index file.
#unique_subject = no                    # Set to 'no' to allow creation of
                                       # several ctificates with same subject.
new_certs_dir   = $dir/newcerts         # default place for new certs.
certificate     = $dir/cacert.pem       # The CA certificate
serial          = $dir/serial           # The current serial number
crlnumber       = $dir/crlnumber        # the current crl number                                        # must be commented out to leave a V1 CRL
crl             = $dir/crl.pem          # The current CRL
private_key     = $dir/private/cakey.pem# The private key
RANDFILE        = $dir/private/.rand    # private random number file

[ req_distinguished_name ]
countryName                     = Country Name(2 letter code)
countryName_default             = CN
countryName_min                 = 2
countryName_max                 = 2
stateOrProvinceName             = State or Province Name (full name)
stateOrProvinceName_default     = FJ
localityName                    = Locality Name (eg, city)
localityName_default            = FZ
0.organizationName              = Organization Name (eg, company)
0.organizationName_default      = zdz

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 丰顺县| 柞水县| 黔东| 临漳县| 镶黄旗| 盐源县| 玛曲县| 连江县| 郴州市| 黄冈市| 环江| 茂名市| 阳山县| 陆丰市| 昌宁县| 连江县| 东海县| 定西市| 抚州市| 含山县| 普安县| 漠河县| 普兰店市| 东至县| 南漳县| 平顶山市| 平和县| 谷城县| 龙里县| 塘沽区| 随州市| 班戈县| 上蔡县| 贵溪市| 荥阳市| 同仁县| 禹州市| 南通市| 拉孜县| 龙陵县| 资溪县|