---
title: "WebServer SSL "
author: "leoleeEye"
date: "2015-01-27T16:04:33Z"
tags: []
categories: ["编程语言"]
slug: "webserver-ssl"
draft: false
lastmod: "2015-01-29T15:16:41Z"
id: 2180495
url: "https://leohome.iteye.com/blog/2180495"
---

**Files :**

  1. domain\_2015.crt 

  2. domain\_2015.key

  3. [root.crt](https://support.globalsign.com/customer/portal/articles/1426602-globalsign-root-certificates)

  4. [intermediate.crt](https://support.globalsign.com/customer/portal/articles/1219303-organizationssl-intermediate-certificates)

 

**Steps :**

  1. copy root.crt intermediate.crt domain\_2015.crt into one file name integration.crt  (integration can be any)

```
-----BEGIN CERTIFICATE-----

root.crt

-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----

Intermediate.crt

-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----

domain.crt

-----END CERTIFICATE-----
```

 

  2. go to openssl bin path (cd C:\\OpenSSL-Win32\\bin) and copy domain\_2015.key, integration.crt to this path

 

  3. openssl pkcs12 -inkey domain\_2015.key -in integration.crt -export -out 2015.pkcs12

 

  4. go to java bin path (cd C:\\Program Files\\Java\\jdk1.7.0\_75\\bin) and copy 2015.pkcs12 to this path

 

  5. keytool -importkeystore -srckeystore 2015.pkcs12 -srcstoretype PKCS12 -destkeystore keystore

**Make sure the keystore file doesn’t already exist.**

 

  6. deploy keystore to webserver

 

  7. [SSL Certificate Checker](https://www.digicert.com/help/)

 

  8. [SSL Certificate Checker II](https://certlogik.com/ssl-checker/)

  

[http://docs.codehaus.org/display/JETTY/How+to+configure+SSL](http://docs.codehaus.org/display/JETTY/How+to+configure+SSL)

 

[http://java.thedizzyheights.com/2011/09/installing-ssl-certificate-chains-in-jetty-and-possibly-other-java-installations/](http://java.thedizzyheights.com/2011/09/installing-ssl-certificate-chains-in-jetty-and-possibly-other-java-installations/)