Microsoft Dynamics 365 for Sales Connector > Introduction to Microsoft Dynamics 365 for Sales Connector > Configure client certificate grant authentication with the serverless runtime environment
  

Configure client certificate grant authentication with the serverless runtime environment

To use the serverless runtime environment to connect to Microsoft Dynamics 365 for Sales with client certificate grant authentication, you must add the required client certificates in the serverless runtime location.
Before you configure a connection for client certificate grant authentication using the serverless runtime environment, perform the following tasks:
    1. Create the following structure for the serverless agent configuration in AWS: <Supplementary file location>/serverless_agent_config
    2. Add the certificates in the Amazon S3 bucket in the following location in your AWS account: <Supplementary file location>/serverless_agent_config/SSL
    3. Copy the following code snippet to a text editor:
    version: 1
    agent:
    agentAutoApply:
    general:
    sslStore:
    - fileCopy:
    sourcePath: SSL/<certificate_file_name>
    where the source path is the directory path of the certificate files in AWS.
    4. Ensure that the syntax and indentations are valid, and then save the file as serverlessUserAgentConfig.yml in the following AWS location: <Supplementary file location>/serverless_agent_config
    When the .yml file runs, the SSL certificates are copied from the AWS location to the serverless agent directory.
    5. In the Microsoft Dynamics 365 for Sales connection properties, specify the following certificate path in the serverless agent directory in the Trust Store and Key Store fields: /data2/home/cldagnt/SystemAgent/serverless/configurations/ssl_store/<cert.p12>