Difference between revisions of "Configuring the http server for https using the keytool"

From PresenceWiki
Jump to: navigation, search
 
Line 19: Line 19:
 
  <security>
 
  <security>
 
         <keystore>./res/keystore</keystore>
 
         <keystore>./res/keystore</keystore>
         <password>wirelesstiles</password>
+
         <password>password</password>
         <keypassword>wirelesstiles</keypassword>
+
         <keypassword>password</keypassword>
 
  </security>
 
  </security>

Revision as of 15:37, 20 January 2012

To create a keystore for the https server:-


keytool -keyalg RSA -genkey -validity 731 -keystore c:\\keystore


After this you can then create a self signed certificate:-

keytool -selfcert -validity 721 -keystore c:\\keystore


Now place the file keystore into the presence res directory.

In the httpconfig edit the following:-

<http-config httpenabled="true" httpsenabled="true" port="81" secureport="443">
<security>
       <keystore>./res/keystore</keystore>
       <password>password</password>
       <keypassword>password</keypassword>
</security>