Loading Trusted Certificates

As explained in Add an HTTP Connection, ensure that certificates from trusted certificate authorities are stored in the project, using an Identity resource in the TIBCO Shared Resources folder. Alternatively use the BE_GLOBAL_TRUSTED_CA_STORE global variable to store a location of the certificates outside of the project.

Signature

Object loadTrustedCertificates(String trustedCertsFolder, String passwordToSet)

Description

HTTPS requires use of an SSL certificate. This function loads a trusted certificate (that is, creates and returns a keystore object) from the trusted certificates folder.

Parameters

Name Type Description
trustedCertsFolder
String
The project path to the folder containing the certificates.

If trusted certificates are stored outside the project, use the following construct in the function:

System.getGlobalVariableAsString("BE_GLOBAL_TRUSTED_CA_STORE")
passwordToSet
String
Obfuscated password for the keystore.

Returns

Type Description
Object
The certificate’s keystore object