Runtime Environments > Serverless runtime environments > Configure TLS to authenticate REST APIs
  

Configure TLS to authenticate REST APIs

If you use REST V3 Connector with an API collection or Machine Learning transformation that runs in a serverless runtime environment, you can configure TLS to establish one-way or two-way secure communication to authenticate REST APIs.
Contact Informatica Global Customer Support to request the required custom properties. Make sure that truststore and keystore certificates are in JKS format.
    1Navigate to the supplementary file location on Amazon S3.
    2In the serverless_agent_config folder, create a subfolder called SSL.
    3Add the truststore and keystore certificates to the SSL folder.
    For one-way secure communication, add the truststore certificates. For two-way secure communication, add both the truststore and keystore certificates.
    4 Copy the following code snippet to a text editor and add the relative path to each certificate in the supplementary file location:
    version: 1
    agent:
    agentAutoApply:
    general:
    sslStore:
    - fileCopy:
    sourcePath: SSL/<REST V3 truststore certificate name>.jks
    - fileCopy:
    sourcePath: SSL/<REST V3 keystore certificate name>.jks
    5In the serverless_agent_config folder, open the serverlessUserAgentConfig.yml file.
    6Add the code snippet to the serverlessUserAgentConfig.yml file and save the file.
    The serverless runtime environment will copy the certificates from the supplementary file location to its own reference directory so that it can use the certificates at run time.
    7In the REST V3 connection properties, use the following format to specify each truststore and keystore file path in the serverless runtime environment: /home/cldagnt/SystemAgent/serverless/configurations/ssl_store/<certificate name>.jks
Provide the custom properties to your developer. Developers enter the custom properties in mapping tasks that run in the serverless runtime environment.