|
1. 保存证书文件 Save the certificate file
一旦您申请的SSL证书成功颁发,您会收到一个Email,附件为您申请SSL证书的域名命名的zip文件,如:www_domain_com.zip,解开zip文件,包含了3个证书文件:第1个是以 UTN 开头的根证书文件,建议另存为文本文件:utn.txt;第2个是以WoTrust 开头的中级根证书文件,建议另存为文本文件:wotrust.txt;第3个文件就是您的域名命名的证书文件,建议另存为文本文件:certificate.txt 。
2. 导入证书 Import the certificate
请使用以下命令导入根证书到您的Keystore中:
Use the keytool command to import the root certificates as follows:
keytool -import -trustcacerts -alias root -file utn.txt -keystore CAcerts
请使用以下命令导入中级根证书到您的Keystore中:
Use the same process for the WoTrust certificate using the keytool command:
keytool -import -trustcacerts -alias INTER -file wotrust.txt -keystore CAcerts
请使用以下命令导入您的证书到您的Keystore中,其中:
Use the same process for the site certificate using the keytool command, if you are using an alias then please include the alias command in the string:
keytool -import -trustcacerts -file certificate.txt -keystore server.keystore
请注意:如果您在生成 keystore 没有指定名称,则不需要 -keystore 选项。
Note: If you did not specify a keystore name when the keystore was originally generated please omit the -keystore parameter from the command)
在运行此命令时会提示您输入密码,也就是您在生成 keystore 时设置的密码。 When you execute this command you will be prompted for the keystore password, please specify the password you set when you generated the keystore.
3. 修改Resin配置文件(resin.conf), Edit the Resin configuration file (resin.conf)
检查和修改配置文件resin.conf:
<http-server>
.........
<http port=8443>
<ssl>true</ssl>
<key-store-file>keys/server.keystore</key-store-file>
<key-store-password>changeit</key-store-password>
</http>
Resin 在文件resin.conf中保存SSL配置信息,请确保Resin能正常读取keystore文件和密码,并且8443端口已经打开。
Resin keeps its configuration information in a resin.conf file, make sure Resin is reading the correct keystore file and keystore password and that port 8443 is enabled for secure connections.
请检查和修改keystoreFile的目录正确和keystore密码正确。
Please make sure the ‘keystoreFile' directive is referencing the correct keystore and the 'KeystorePass' directive is referencing the correct keystore password.
请保存配置文件,重新启动Resin。
Please save the changes and stop and start Resin.
4. 完成配置 Setup the server
请一定要分配8443端口和一个固定的IP地址给主机(注意:防火墙一定要开放8443端口TCP)。
Make sure you assign port 8443 and a unique ip address to the virtual host.Note: If the server is behind a firewall please make sure port 8443 has been enabled on the firewall.
在浏览器地址栏输入:https://yourdomain.com(申请证书的域名)测试您的SSL证书是否安装成功,如果成功,则浏览器下方会显示一个安全锁标志。请注意:如果您的网页中有不安全的元素,则会提供“是否显示不安全的内容”,建议修改网页删除不安全的内容。 Test your certificate by using a browser to connect to your server. Use the https protocol directive (e.g. https://your server/) to indicate you wish to use secure HTTP. The padlock icon on your browser will be displayed in the locked position if your certificates are installed correctly and the server is properly configured for SSL.
|