安装openssl
通过官网的下载源码编译或者直接通过exe文件直接下一步下一步安装完成,网上教程很多!
openssl制作证书
先创建3个目录 certificate、service 、client
进入cmd cd到上面三个目录的父目录
1.创建私钥 :
D:\IDEA\qqtxt>openssl genrsa -out certificate/ce-key.pem 1024
2.创建证书请求 :
D:\IDEA\qqtxt>openssl req -new -out certificate/ce-req.csr -key certificate/ce-key.pem
Country Name (2 letter code) [AU]:cn
State or Province Name (full name) [Some-State]:chongqing
Locality Name (eg, city) []:chongqing
Organization Name (eg, company) [Internet Widgits Pty Ltd]:tianshenyi
Organizational Unit Name (eg, section) []:test
Common Name (e.g. server FQDN or YOUR name) []:root
Email Address []:abc
Please enter the following ‘extra’ attributes
to be sent with your certificate