Let clients list and revoke certs

This commit is contained in:
2021-12-06 19:14:39 +01:00
parent 79b80772c7
commit be564f9a3e
12 changed files with 684 additions and 122 deletions

View File

@@ -135,3 +135,27 @@ service UserService {
rpc Approve(ApproveUserRequest) returns (Empty) {}
rpc ChangePassword(ChangePasswordRequest) returns (Empty) {}
}
///////////////////////////////
// Certificate related stuff //
///////////////////////////////
// List
message ListCertificatesResponse {
message CertificateInfo {
string serial = 1;
string owner_id = 2;
string owner_username = 3;
}
repeated CertificateInfo certificates = 1;
}
// Revoke
message RevokeCertificateRequest {
string serial = 1;
}
service CertificateService {
rpc ListCertificates(Empty) returns (ListCertificatesResponse) {}
rpc RevokeCertificate(RevokeCertificateRequest) returns (Empty) {}
}