I hope this helps someone...
1 - Get jdk-6u38-ea-bin-b04-windows-i586-31_oct_2012.exe and install it. Add to the environment path C:\Program Files (x86)\Java\jdk1.6.0_38\bin
2 - Run the Install.bat
Choose C:\WebKeePass for the installation path and C:\Program Files (x86)\Java\jdk1.6.0_38 for Java Home Path
Choose Use na embedded WebKeePass data source
3 - Because of the error Server Connection Reset... download and install jdk-7u71-windows-x64.exe
4- Run the Install.bat again
Choose C:\WebKeePass for the installation path and C:\Program Files\Java\jdk1.7.0_71 for Java Home Path
Add to the environment path C:\Program Files\Java\jdk1.7.0_71\bin
5 - Start the Tomcat server by running the startup.bat at C:\WebKeePass
6 - In your local browser find Java > Configure Java > Security > Edit site list and put there the webservice url.
7 - LDAP integration
C:\WebKeePass\conf\WebKeePassConf.xml
<LDAP_CONFIG> <LDAP>true</LDAP> <LDAP_Group>Users</LDAP_Group> <principalDNSuffix>@your_domain.local</principalDNSuffix> <java.naming.provider.url>ldap://yourdc.yourdomain.local:389</java.naming.provider.url> <java.naming.security.authentication>simple</java.naming.security.authentication> <java.naming.factory.initial>com.sun.jndi.ldap.LdapCtxFactory</java.naming.factory.initial> </LDAP_CONFIG>
Create the root user in ADDS with same password so you can authenticate in the webservice.
8 - SSL
C:\WebKeePass\conf>keytool -delete -alias tomcat -keystore webKeePass.key Enter keystore password: changeit
keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore webKeePass.key -dname "CN=your_server_name.your_domain.local,OU=IT, O=Company, L=CITY, ST=STATE, C=COUNTRY"
C:\WebKeePass\conf>keytool -certreq -alias tomcat -file request.csr -keystore WebKeepass.key
Go to your https://CA_server/certsrv and put there the request.csr (copy with notepad the text)
keytool -import -alias root -keystore webKeePass.key -trustcacerts -file your_root_certificate.cer
keytool -import -trustcacerts -alias tomcat -file certnew.cer -keystore webKeePass.key
Restart the webservice and there you go.
Thanks,
Miguel Ângelo Saragoça Soares
Log in to post a comment.
I hope this helps someone...
1 - Get jdk-6u38-ea-bin-b04-windows-i586-31_oct_2012.exe and install it.
Add to the environment path C:\Program Files (x86)\Java\jdk1.6.0_38\bin
2 - Run the Install.bat
Choose C:\WebKeePass for the installation path and C:\Program Files (x86)\Java\jdk1.6.0_38 for Java Home Path
Choose Use na embedded WebKeePass data source
3 - Because of the error Server Connection Reset... download and install jdk-7u71-windows-x64.exe
4- Run the Install.bat again
Choose C:\WebKeePass for the installation path and C:\Program Files\Java\jdk1.7.0_71 for Java Home Path
Choose Use na embedded WebKeePass data source
Add to the environment path C:\Program Files\Java\jdk1.7.0_71\bin
5 - Start the Tomcat server by running the startup.bat at C:\WebKeePass
6 - In your local browser find Java > Configure Java > Security > Edit site list and put there the webservice url.
7 - LDAP integration
C:\WebKeePass\conf\WebKeePassConf.xml
<LDAP_CONFIG>
<LDAP>true</LDAP>
<LDAP_Group>Users</LDAP_Group>
<principalDNSuffix>@your_domain.local</principalDNSuffix>
<java.naming.provider.url>ldap://yourdc.yourdomain.local:389</java.naming.provider.url>
<java.naming.security.authentication>simple</java.naming.security.authentication>
<java.naming.factory.initial>com.sun.jndi.ldap.LdapCtxFactory</java.naming.factory.initial>
</LDAP_CONFIG>
Create the root user in ADDS with same password so you can authenticate in the webservice.
8 - SSL
C:\WebKeePass\conf>keytool -delete -alias tomcat -keystore webKeePass.key
Enter keystore password: changeit
keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore webKeePass.key -dname "CN=your_server_name.your_domain.local,OU=IT, O=Company, L=CITY, ST=STATE, C=COUNTRY"
C:\WebKeePass\conf>keytool -certreq -alias tomcat -file request.csr -keystore WebKeepass.key
Go to your https://CA_server/certsrv and put there the request.csr (copy with notepad the text)
keytool -import -alias root -keystore webKeePass.key -trustcacerts -file your_root_certificate.cer
keytool -import -trustcacerts -alias tomcat -file certnew.cer -keystore webKeePass.key
Restart the webservice and there you go.
Thanks,
Miguel Ângelo Saragoça Soares