--- title: "Mutual TLS Certificates" slug: "mtls-certificates" updated: 2026-10-23T02:58:42Z published: 2026-10-23T02:58:42Z canonical: "docs.crossworkassurance.cisco.com/mtls-certificates" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Mutual TLS Certificates ### Create a Mutual TLS Certificates Mutual TLS (mTLS) certificates provide an enhanced layer of security by requiring the client to present a valid certificate verified by the Crosswork Assurance system. This guide outlines the process for generating, signing, and validating certificates used for secure RESTCONF API authentication. ### Step 1: Generate Client Key and CSR First, generate a private key and Certificate Signing Request (CSR) locally on your machine: ``` # Generate key and CSR for a user (e.g., "nso-user") openssl req -newkey rsa:2048 -nodes -keyout client.key -out client.csr \ -subj "/CN=nso-user" ``` ### Step 2: Sign the CSR via Crosswork Assurance Mutual Distribution API Use your Bearer or PAT token to sign the CSR. **Note:** This process utilizes the Distribution API endpoint, not the standard RESTCONF interface. ``` # Sign the CSR - NOTE: This is the distribution API endpoint, not RESTCONF! curl -sk -X POST "https:///distribution/sign-csr?certduration=2160&format=pem&requestedUsername=nso-user&assignedRoles=tenant-admin,tenant-contributor,ug_all_data_access" \ -H "Authorization: Bearer " \ -H "Content-Type: application/octet-stream" \ --data-binary @client.csr \ -o client.pem ``` **Parameters:** | Parameter | Description | Example | | --- | --- | --- | | certduration | Certificate validity in hours | 2160 (90 days) | | format | Output format | pem | | requestedUsername | Username embedded in cert | nso-user | | assignedRoles | Comma-separated roles | tenant-admin,tenant-contributor | ### Step 3: Verify the Certificate Ensure the certificate was generated correctly by checking the details: ``` # Check certificate details openssl x509 -in client.pem -noout -subject -issuer -dates ``` ### Step 4: Validate the mTLS Certificate with Crosswork Assurance Before using the certificate for RESTCONF, validate that it is recognized by the Crosswork Assurance authentication system: ``` # Validate mTLS certificate curl -sk --cert client.pem --key client.key \ "https:///api/v1/auth/cert/validate/authorization" ``` **Expected response:** A success message indicating that the certificate is valid and authorized. **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)