本地自签证书测试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
how to get sildenafil cheapest cheapest tadalafil 5mg cialis daily use female viagra pharmacy australia bupropion sr 200 mg canadian drugstore cialis cheap generic viagra clomid costs uk discount nolvadex where can you buy viagra over the counter in australia
viagra samples
http://maxdrviagra.com/
cheap viagra
100mg viagra without a doctor prescription
http://nextviagradr.com/
viagra pills
buy modafinil pills viagra uk cheapest pharmacy to fill prescriptions without insurance good value pharmacy 100mg sildenafil for sale tadalafil 30mg tadalafil uk cheap lexapro tablets 10 mg
average cost of 100mg viagra
60lmentop.com viamengo.com didoviamen.com
melatonin and plaquenil plaquenil cost canada is plaquenil considered low in side effects who manufactures plaquenil
plaquenil lyme hydroxychloroquine cost alternative to plaquenil for lupus what is another name for plaquenil
60lmentop.com viamengo.com didoviamen.com
60lmentop.com viamengo.com didoviamen.com
buy generic viagra online
http://nextviagradr.com/
cost of viagra
meet singles
free online dating
single free dating sites without registering
free adult chat sites
buy provigil online no prescription tadalafil online order generic seroquel online can you buy doxycycline over the counter canada can you buy cialis in canada
60lmentop.com viamengo.com didoviamen.com
single women online
[url="http://freedatingsitesus.com/?"]plenty of fish dating site of free dating [/url]
single chat sites
mature adult phone chat
prednisone and plaquenil chloroquine drug is plaquenil chemo drug? what type of medication is plaquenil
viagra dosage
http://maxdrviagra.com/
generic viagra available
viagra soft sale modafinil australia prescription viagra online with prescription cialis prescription cost buy tadalafil 60mg cheap cialis free shipping cheap nexium tablets hydroxychloroquine tablets buy online