Generate certificates and private keys
Certificates and private keys are required for OpenConfig streaming telemetry. You must use the same certificate authority (CA) for all components to ensure secure and consistent authentication.
Note | To ensure that you generate certificates using the same CA, run these commands together and from the same endpoint. If you want to retry the commands, you must retry all commands. |
Procedure
Step 1 | Make a folder, for example Example:
| ||
Step 2 | Create a self-signed CA certificate with a corresponding private key. Example:The subject information includes the provided Country (C), State (ST), Locality (L), Organization (O), Organizational Unit (OU), Common Name (CN), and email address. The private key is saved as | ||
Step 3 | Create a self-signed server certificate with the specified Common Name (CN) and Subject Alternative Name (SAN): Example:
The The The You have to upload the | ||
Step 4 | Create client certificate with the specified Common Name (CN) and Subject Alternative Name (SAN). Example:The gNMI client uses the client certificate | ||
Step 5 | (Optional) For dial-out mode, create the tunnel server certificate with the specified Common Name (CN) and Subject Alternative Name (SAN). Example: |