You can optionally use HTTPS instead of HTTP for user access. This option lets you specify a user name and password to minimize concerns about the data being exposed in clear text on the network.
To configure Web Services to use HTTPS, follow these steps:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
A prompt appears.
A default keystore is created in your home directory with one self-signed certificate inside.
Note: Ensure the keystorePass value matches the password specified in Step 1.
Sample SSL connector data follows:
<!-- Define a SSL HTTP/1.1 Connector on port 8443…
<Connector port="8040" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystorePass="Y7ssl"
keystoreFile="/ca/.keystore"/>
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8040" />
<security-constraint>
<web-resource-collection>
<web-resource-name>Tomcat</web-resource-name>
<url-pattern>*.html</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
After you start the Apache Tomcat server, you will be prompted to indicate whether you trust the defined certificate. Click Yes to import it to your trusted certificates.
Note: For more information about trusted certificates, see Apache Tomcat 6.0 on the Web.
|
Copyright © 2014 CA.
All rights reserved.
|
|