Resin 4 deployment of SSL certificates

Source: Internet
Author: User

Objective

Resin The latest version is still 4.0 (4.0.49), using Java EE6, the deployment of certificates on resin, generally there are two ways, first of all we recommend the use of OpenSSL, not only because the OpenSSL mode faster, and OpenSSL support for TLS is better and more secure, and the other way of Jsse is not only slow, but also JSSE6 only supports TLS1.0.

We will describe each of these 2 modes below.

Find Intermediate certificates

If you deploy the certificate in OpenSSL mode, in order to ensure compatibility with all browsers, we must deploy intermediate certificates, and if not, the installation process will not be an error, but may cause the Android system, Chrome and Firefox and other browsers will not be recognized. Please go to the Intermediate certificate download tool, enter your server.cer, and then download the intermediate certificate, save the intermediate certificate as Chain.cer.

Making the JKs file JKs (Java Keystroe) file is the file we need to deploy Jsse mode later.

Please synthesize a new JKs file with the Server.cer and Server.key files you received into the JKS online synthesis tool. There are 2 parameters that need to be set here:
    • Alias: The index name of the key pair imported into JKS, which can be set to "SSL".
    • Password: Access the JKS password.
Deploying an SSL Certificate in OpenSSL mode

Open the Resin.xml and add the following configuration:

<resin xmlns= "Http://caucho.com/ns/resin" >   <cluster id= "Http-tier" >   <server id= "a" address= "192.168.1.12" >     

Description

    • <CERTIFICATE-FILE>: Server certificate file.
    • <certificate-key-file>: The private key file for the server certificate.
    • <password>: The password of the server certificate private key file, if the original private key file does not have a password, you can run the following OpenSSL command:
OpenSSL rsa-in server.key-des-out serverpass.key-passout pass:123456
    • <certificate-chain-file>: Intermediate certificate file.
    • <cipher-suite>: Encryption Suite settings.
    • <protocol>: protocol description, generally only open TLS 1, TLS 1.1, TLS 1.2 protocol.
Jsse mode

Open Resin.xml and add the following parameters:

<resin xmlns= "Http://caucho.com/ns/resin" >  <cluster id= "" >    <server-default>     < HTTP port= "443" >     <jsse-ssl>       <key-store-type>jks</key-store-type>       < Key-store-file>keys/server.keystore</key-store-file>       <password>changeit</password>               <protocol>-sslv3</protocol>     </jsse-ssl>    

Description

    • <key-store-type>: Sets the type of KeyStore file, which is generally set to JKS.
    • <key-store-file>:jks file name.
    • The password for the <password>:jks file.
    • <PROTOCOL>: Supported protocols.

Https://www.myssl.cn/ssl/resin/java/install.htm

Resin 4 deployment of SSL certificates

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.