repeated string certificate_id = 1; } message RevokeCertificatesResponse { // List of certificates successfully revoked. repeated string revoked_certificate_id = 1; // List of errors why certain certificates could not be revoked. repeated CertificateRevocationError certificate_revocation_error = 2; } // An error message indicating why a certificate id could not be revoked. message CertificateRevocationError { string certificate_id = 1; string error_message = 2; } GetCertificate RPC This RPC queries all certificate IDs. The response to the query contains the following information: • Certificate information for all the certificates that are identified by a certificate ID.
• The list of endpoints, for example, tunnels, daemons, and so on, that use this certificate. Endpoints are not supported. Note Responses do not contain the ca_certificate bundle. Note The following is a sample GetCertificate RPC: // An RPC to get the certificates on the target. rpc GetCertificates(GetCertificatesRequest) returns (GetCertificatesResponse); // The request to query all the certificates on the target. message GetCertificatesRequest { } // Response from the target about the certificates that exist on the target what // what is using them.
message GetCertificatesResponse { repeated CertificateInfo certificate_info = 1; } message CertificateInfo { string certificate_id = 1; Certificate certificate = 2; // List of endpoints using this certificate. repeated Endpoint endpoints = 3; Model-Driven Programmability GetCertificate RPC Programmability Configuration Guide, Cisco IOS XE 17.16.x 280