Jun 24, 2008 at 7:04 PM
Edited Mar 13, 2009 at 8:24 PM
This was posted on the first page so I moved it here:
Is there any documentation about how to create a cert?
Colin S. Brown
Healthvault uses public/private key infrastructure to verify the application. It does not validate the public key certificate chain so there is no need to obtain keys from a trusted CA.
The healthvault java sdk uses the JSSE keystore to obtain the application's private key. The keystore file is loaded from the classpath and is shipped with the name "/keystore". The following
entries in hv-application configure its use:
The jdk ships with a tool to create and manage keys within this store: keytool
The instructions for how to generate a public/private key pair are described in the documentation for the com.microsoft.hsg.DefaultPrivateKeyStore class:
keytool -genkeypair -keyalg RSA -keysize 1024 -keystore keystore -alias java-wildcat
This creates a file named "keystore" if it doesn't already exist and the generated keys are placed within. The password for the keystore and the key must be the same. You may choose other
values for the keystore name and the key alias, but they must correspond to configuration values in hv-application.properties.
The public key certificate must then be exported from the key store and sent to the partner team. To export the key:
keytool -export -alias java-wildcat -keystore keystore > my-pub.cer
Send the my-pub.cer file to us and we’ll take care of the rest.