If you obtained a signed server certificate from a CA, use keytool to import the certificate into your keystore file.

1

Copy the text file that contains your server certificate to the directory that contains your keystore file and save it as certificate.p7.

For example:

-----BEGIN PKCS7-----
MIIF+AYJKoZIhvcNAQcCoIIF6TCCBeUCAQExADALBgk
LDCCApWgAwIBAgIQTpY7DsV1n1HeMGgMjMR2PzANBgk
i7coVx71/lCBOlFmx66NyKlZK5mObgvd2dlnsAP+nnS
EhCsdpikSpbtdo18jUubV6z1kQ71CrRQtbi/WtdqxQE
-----END PKCS7-----
2

Open a command prompt and use keytool to import the server certificate into the keystore file.

For example: keytool -importcert -keystore keys.jks -storepass secret -keyalg "RSA" -trustcacerts -file certificate.p7

3

If you specified a temporary certificate, type yes when you receive the message ... is not trusted. Install reply anyway?.

keytool generates this message because temporary certificates are not meant for production use.

Configure your View Connection Server instance or security server to use the certificate. See Configure a View Connection Server Instance or Security Server to Use a New Certificate.