Certificate Authentication Workflow
This pages describes the implementation of certificate-based Authentication. For the API reference of Certificate Session Authenticate and Certificate Key Manager Authenticate, see the following API endpoints:
Note: The following authentication sequence is provided out of the box by our dedicated BDK and WDK toolkits. To learn more about authenticating using the SDKs or BDK proceed to one of following configuration guides:
Overview of Certificate-Based Authentication
Symphony allows you to authenticate on the Pod and Key Manager with a client certificate that is signed by a trusted root certificate. When a bot calls the Session Authenticate endpoint, the Pod examines the client certificate provided in the TLS session to identify the bot user and return a Session Token. The same process occurs when a bot authenticates on the Key Manager.
All Symphony network communications take place over TLS-protected HTTP. The network uses authentication methods that require a client-authenticated TLS connection.
Client certificate authentication in TLS is configured at the port level. Two distinct ports are required for client-authenticated and non-client-authenticated connections. The web and mobile endpoints listen on port 443 (the default port number for HTTPS connections). The API endpoints require a separate port, typically port 8444.
Summary
The Admin upload a Signing certificate or Root certificate using the Admin portal.
The Admin provides to the developer a child client certificate derived from the Signing or Root certificate
The developer authenticates the Bot using the client certificate.
Note: It is also possible to directly upload a Client certificate in the Admin portal instead of a Signing or Root certificate.
1. Upload a Signing Certificate or Root Certificate
Please note the below steps can only be performed by a Symphony Pod Administrator as they will have the necessary administrator privileges to access the Administration Portal.
The certificate should be concerted to a CER or PEM format before it is uploaded
Once you have obtained a copy of your Root Certificate Authorities (CA) Public "Signing Certificate", you can upload it using the following steps:
Navigate to the Symphony Admin Console for your Pod (e.g. https://mypod.symphony.com/?admin), then log in with your credentials
Once logged in click the Manage Certificates button then select Import
Drag and drop your Certificate file into the popup window:
Once you have uploaded the certificate file, click Import. If successful you will receive a confirmation message saying that the certificate has been uploaded successfully.
2. Generate a Client Certificate
You can use the following commands to generate the service account certificate. The certificate must use 4096 bits length.
USERNAME = Service account username
PASSWORD = Service account key password
CA_CERT = CA certificate file
CA_KEY = CA key file
CA_PASSWORD = CA key password
OUTPUT_PASSWORD = PKCS12 file password
Creating a Certificate Signing Request (CSR):
The following table shows the information you will need to provide to your PKI team:
The Common Name (CN) value must match the name of the Symphony Service Account you created, this should also use the same case value.
Details
Example Values
Certificate Type
Single Domain Certificate
Common Name (CN)
demo-bot1
Organization
Excelsior Bank
Department
Collaboration Services
admin@bots.symphony.com
Locality
London
State / Province
London
Country
GB
Key Size
2048 bits
Creation of the service user in the Admin Portal
The Symphony Admin then creates a service user with a username that matches the Common Name of the certificate, as you can see in the example below:
3. Authenticate
To authenticate on the Pod the bot must call the Session Auth endpoint: https://developers.symphony.com/restapi/main/bot-authentication/session-authenticate. Pass along the client certificate provided in the TLS session, returning a Session Token:
A successful response:
To authenticate on the Key Manager, the bot must call the Key Manager Auth endpoint: https://developers.symphony.com/restapi/main/bot-authentication/key-manager-authenticate. Pass along the client certificate provided in the TLS session, returning a Key Manager Token:
A successful response:
Pass the Session Token and Key Manager Token as headers for all subsequent API requests.
Last updated