-1

I have a configured SSL Certificate to Glassfish 4, now I want this to be configured for TomEE-7. Please help me to achieve this. Thanks

MWiesner
  • 8,868
  • 11
  • 36
  • 70
Ratna Kumar
  • 84
  • 2
  • 10

1 Answers1

0

I got solution to this.

I have one .key and two .cer [web certificate and CA certificate] files with me.

keytool -import -alias root -keystore tomee.jks -trustcacerts -file caCert.cer

keytool -import -alias tomcat -keystore tomee.jks -file myWeb.cer

Then modify config/server.xml

<Connector port="9090" protocol="HTTP/1.1"
               maxThreads="150" SSLEnabled="true">
        <SSLHostConfig>
            <Certificate certificateKeystoreFile="tomee.jks"
                        certificateKeyPassword="passwd"
                         type="RSA" />
        </SSLHostConfig>
</Connector>

Now, restart your server.

Make sure, if you want to enable only port 9090. the server.xml file should have one and only Connector tag. <Connector port="9090"../>

Anybody finds any error, please add comments.

Ratna Kumar
  • 84
  • 2
  • 10