Create a self-signed certificate for the Secure SD-WAN Manager API
- Login to your SMC machine.
- Select Configuration and navigate to Administration.
- Select Certificates > TLS Credentials.
- Right-click TLS Credentials, and then select New TLS Credentials.
- In the Name field, enter a unique name for the certificate.
- In the Common Name field, enter the fully qualified domain name (FQDN) or the public IP address that the SMC API service uses.
- Add the same FQDN or IP address that you entered in the Common Name field as the Subject Alternative Name.
- Click Edit option next to the Subject Alternative Name field.
- If you have a fully qualified domain name (FQDN), do the following:
- Click Add
- Select DNS from the drop-down list in the Type cell,
- Double-click Value cell, then enter the FQDN.
- If you use a public IP address to access the SMC API, do the following:
- Click Add,
- Select IP address from the drop-down list in the Type cell,
- Double-click Value cell, then enter the public IP address for SMC API connections.
- If you have a fully qualified domain name (FQDN), do the following:
- From the signing options, select Self-Sign, and then click Finish.
- Right-click the certificate element as created in the preceding steps.
- Select Properties.
- On the Certificate tab, click Export and save the certificate file.
- Click OK.
- Convert the exported certificate to base64 string using a Windows machine with Windows PowerShell ISE.
- Open Windows PowerShell ISE and load the content of the exported certificate into a variable. Using the following command, replace the red text with the path to the exported certificate:
- $pfx_cert = get-content 'C:\Users\Demo\Downloads\certificate1604078668615.crt' -Encoding Byte
- Run the following command to convert the exported certificate to Base64 string:
- [System.Convert]::ToBase64String($pfx_cert)
- Save the output in a secure location for future reference.