Jboss4.2.3 SSL configuration + Digital Signature generation

Source: Internet
Author: User
Tags jboss

1. Generate a digital signature

1. Generate a jks File

Keytool-genkey-keyalg RSA-alias jbosskey-keystore jbosskey. jks

In win7, the default path of this file is c: \ Users \ rigid.

2. Export the certificate

Keytool-export-alias jbosskey-file jbosskey. cer-keystore jbosskey. jks

In win7, the default path of this file is c: \ Users \ rigid.

3. View Details of the jks File

Keytool-list-keystore jbosskey. jks

Ii. Configure JBoss SSL

1. Copy the jks and CER files to % jboss_home %/Server/default/CONF.

2. Modify jboss-4.2.3.GA \ Server \ Default \ deploy \ jboss-web.deployer \ Server. xml

Add

Keystorefile = "$ {JBoss. server. Home. dir}/CONF/jbosskey. jks"
Keystorepass = "1qazxsw2"

 <Connector port="8080" address="${jboss.bind.address}"             maxThreads="250" maxHttpHeaderSize="8192"         emptySessionPath="true" protocol="HTTP/1.1"         enableLookups="false" redirectPort="8443" acceptCount="100"         connectionTimeout="20000" disableUploadTimeout="true" />    <!-- Define a SSL HTTP/1.1 Connector on port 8443         This connector uses the JSSE configuration, when using APR, the          connector should be using the OpenSSL style configuration         described in the APR documentation -->    <!--    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"               maxThreads="150" scheme="https" secure="true"               clientAuth="false" sslProtocol="TLS" />    -->    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"                  address="${jboss.bind.address}"                    scheme="https" secure="true" clientAuth="false"                     keystoreFile="${jboss.server.home.dir}/conf/jbosskey.jks"                    keystorePass="1qazxsw2" sslProtocol = "TLS" />

 

Jboss4.2.3 SSL configuration + Digital Signature generation

Related Article

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.