本地自签证书测试https
参考文章:https://www.2cto.com/article/201510/444706.html
生成密钥、证书
第一步,为服务器端和客户端准备公钥、私钥
生成服务器端私钥 openssl genrsa -out server.key 1024
生成服务器端公钥 openssl rsa -in server.key -pubout -out server.pem
生成客户端私钥 openssl genrsa -out client.key 1024
生成客户端公钥 openssl rsa -in client.key -pubout -out client.pem 第二步,生成 CA 证书
生成 CA 私钥 openssl genrsa -out ca.key 1024
X.509 Certificate Signing Request (CSR) Management. openssl req -new -key ca.key -out ca.csr
X.509 Certificate Data Management. openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt 在执行第二步时会出现:
➜ keys openssl req -new -key ca.key -out ca.csr You are about to be
asked to enter information that will be incorporated into your
certificate request. What you are about to enter is what is called a
Distinguished Name or a DN. There are quite a few fields but you can
leave some blank For some fields there will be a default value, If you
enter '.', the field will be left blank.
----- Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Zhejiang Locality Name (eg, city) []:Hangzhou
Organization Name (eg, company) [Internet Widgits Pty Ltd]:My CA
Organizational Unit Name (eg, section) []: Common Name (e.g. server
FQDN or YOUR name) []:localhost Email Address []:
注意,这里的 Organization Name (eg, company) [Internet Widgits Pty Ltd]: 后面生成客户端和服务器端证书的时候也需要填写,不要写成一样的!!!可以随意写如:My CA, My Server, My Client。
然后 Common Name (e.g. server FQDN or YOUR name) []: 这一项,是最后可以访问的域名,我这里为了方便测试,写成 localhost ,如果是为了给我的网站生成证书,需要写成 barretlee.com 。
第三步,生成服务器端证书和客户端证书
服务器端需要向 CA 机构申请签名证书,在申请签名证书之前依然是创建自己的 CSR 文件 openssl req -new -key server.key -out server.csr
向自己的 CA 机构申请证书,签名过程需要 CA 的证书和私钥参与,最终颁发一个带有 CA 签名的证书 openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in server.csr -out server.crt
client 端 openssl req -new -key client.key -out client.csr
client 端到 CA 签名 openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in client.csr -out client.crt
vantin canada where to buy vantin vantin 200mg uk
augmentin uk price
consumer loan money payday loans payday loan cash advance business loan low doc loans bad credit same day loans loans guaranteed approval cash advance america
generic drugs http://erectileprop.com/ how to cure ed Fwsrke viluec
canadian pharmacy reviews rx pharmacy approved canadian online pharmacies
canada drugs
http://canadianpharmacynethd.com/
mexican pharmacy
clomid pills price clomid where to buy women cialis
chewable tadalafil
zestril generic zestril 10 mg without a prescription zestril generic
zithromax 1500 mg tadalafil 5 mg online cialis prescription levitra professional lexapro 10 mg pill stromectol buy
viagra cream australia generic prednisone 20mg order viagra online usa amoxicillin 8 mg buying from canadian pharmacies
vardenafil tablets in india vardenafil online india sildenafil 220 chloroquine sulphate 200mg prednisone 2 tablets daily amoxil 500g chloroquine purchase online canada synthroid cost retin a 0.1 gel propecia purchase uk doxycycline 100mg over the counter azithromycin tabs ventolin price usa buy ivermectin nz hydroxychloroquine 200 mg cost
phenergan 12.5 mg viagra 20 mg online hydroxychloroquine-o-sulfate buy viagra online in us can you buy viagra otc
sildenafil 20 mg cheap viagra pills for sale clomid prescription online canadian pharmacies compare best online pharmacy quineprox 90 mg zithromax 250 tablet buy cheap tadalafil uk
viagra pill case
viagra kennels
generic cialis eli 20 roani Cloup
cialis drug generic cialis pills aralen tab 150 mg otc cialis canada clomid medication south africa
vardenafil cheap prednisone online no prescription
canadian pharcharmy online
http://canadianpharmacynethd.com/
trust online pharmacies
viagra for female for sale quineprox 40 doxycycline over the counter cialis tablets 5mg price online pharmacy uk
credit debt consolidation loans