StartSSL证书申请与使用

1、登陆官网

https://startssl.com/

找到下面的图,选择免费的,点击start now

StartSSL证书申请与使用_第1张图片

未注册的选择然后注册账号

StartSSL证书申请与使用_第2张图片


注册完成可以下载登陆证书:你的邮箱.p12,下载完成后双击导入。

注册过的选择

StartSSL证书申请与使用_第3张图片

然后选择你的个人登陆证书即可,登陆后可以看到下面的页面

StartSSL证书申请与使用_第4张图片

完成域名校验后即可下载自己的证书。

注意,认证过的域名,可以填写自己的csr信息。

StartSSL证书申请与使用_第5张图片

添加完毕后,就可以下载crt证书了。


下面的是官方提供的证书安装说明:


Import root CA, intermediate CA and public certificate into keystore.
For example:
keytool -import -trustcacerts -alias alias_name -file xxx.crt -keystore keystore_name
1. Import root CA.
keytool -import -trustcacerts -alias root -file 1_root.crt -keystore your_keystore
2. Import intermediate CA.
keytool -import -trustcacerts -alias intermediate -file 2_Intermediate.crt -keystore
your_keystore
3. Import public certificate.
Keytool -import -trustcacerts -alias alias_name -file 3_domain.com.crt -keystore your_keystore
(note: alis_name same to your_keystore alias_name)

Find the file “Server.xml” in the Tomcat directory, which usually in conf file. Then open the file in
a text editor, and then find the code.

scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"
keystoreFile="path/to/keystore" keystorePass="password" />
Usually is commented, we delete“”,and edit it, like: port,
keystoreFile, keystorePass.


你可能感兴趣的:(Web安全,https/ssl)