The following topic describes how to install an SSL certificate for jetty.
> jdk/bin/keytool -genkey -alias my-cert -keyalg RSA -keystore .mykeystore
> jdk/bin/keytool -certreq -alias my-cert -file cert.csr -keystore .mykeystore
openssl x509 -in cert.crt -out cert.der –outform DER
> jdk/bin/keytool -import -alias my-cert -file cert.der -keystore .mykeystore
<Call name="addListener"> <Arg> <New class="org.mortbay.http.SunJsseListener"> <Set name="Port">8443</Set> <Set name="MinThreads">5</Set> <Set name="MaxThreads">100</Set> <Set name="MaxIdleTimeMs">30000</Set> <Set name="LowResourcePersistTimeMs">2000</Set> <Set name="Keystore"><SystemProperty name="jetty.home" default="."/>/.mykeystore</Set> <Set name="Password">keystorePassword</Set> <Set name="KeyPassword">keyPassword</Set> </New> </Arg> </Call>
# URL of your site. Host name and port should be correct. # We use this address in e-mail notification messages. trackstudio.siteURL https://localhost:8443/TrackStudio
perl ./CA.pl -newca
or
./CA -newca
jdk/bin/keytool -certreq -alias my-cert -file cert.csr -keystore .mykeystore
openssl ca -config /usr/share/ssl/openssl.cnf -out cert.crt -infiles cert.csr
openssl verify -CAfile ./demoCA/cacert.pem cert.crt
openssl x509 -in cert.crt -out cert.der -outform DER
Please note that some functionality (Excel reports, Save target as... when file download, etc) will not work with a demo cert under MS Internet Explorer. Use a certificate from a Certificate Authority such as Verisign or XRamp to solve this issue.