How to create ssl for CAS Server on tomcat

Ceritanya mau gaya2an aja sih, buat ssl untuk kebutuhan CAS Server karena kudu & wajib pake ssl

langsung aja gan

cd /opt/jdk1.7.0_79/bin
./keytool -genkey -alias tomcat -keypass changeit -keyalg RSA
./keytool -export -alias tomcat -keypass changeit -file server.crt
./keytool -import -file server.crt -keypass changeit -keystore ../jre/lib/security/cacerts
./keytool -list -keystore /root/.keystore

vi /apps/tomcat8/conf/server.xml
<Connector port=”8443″ protocol=”org.apache.coyote.http11.Http11NioProtocol” maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ SSLEnabled=”true” scheme=”https” secure=”true”
clientAuth=”false” sslProtocol=”TLS”
keystoreFile=”/root/.keystore”
keystorePass=”changeit”
truststoreFile=”/opt/jdk1.7.0_79/jre/lib/security/cacerts” />

start tomcatnya

#dahgituaja 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: