Loading Trusted Certificates
As explained in
Adding 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 the 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 constructs 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 |