Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Security Folder | Summary of Elements in this Folder | wm.tn.security:getSSLKeyAndChain
 
wm.tn.security:getSSLKeyAndChain
Retrieves a client’s SSL private key and certificates.
Input Parameters
clientID
String The internal ID of the partner that acts as the client in the SSL connection.
serverID
String (optional) The internal ID of the partner that acts as the remote server in the SSL connection.
Output Parameters
clientID
String The internal ID of the partner that acts as the client in the SSL connection.
serverID
String The internal ID of the partner that acts as the remote server in the SSL connection. If serverID is null, that indicates that the key and certificate that were retrieved are the default SSL client key and certificate.
key
Object A byte array that represents the private key that is used to generate the SSL client certificate.
certChain
Object An array of byte arrays. Each byte array represents a java.security.cert.X509Certificate. The certificates are in node-to-root order. The first certificate in the array is the client SSL certificate. Each subsequent certificate is the certificate that was used to sign the previous certificate in the array.
whichSSLCert
String Indicates one of the following values for the SSL certificate:
*TN_alternative - The SSL client certificate, saved in the Trading Networks database, is specific to the client and remote server.
*TN_default - The SSL client certificate, saved in the Trading Networks database, is the default client SSL certificate for SSL connections to all remote secure servers.
*IS_default - The certificate saved in Integration Server as “Outbound SSL certificates.”