37 lines
847 B
Protocol Buffer
37 lines
847 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package metacrypt.v2;
|
|
|
|
option go_package = "git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v2;metacryptv2";
|
|
|
|
// PKIService provides unauthenticated access to public CA certificates.
|
|
// These endpoints only require the service to be unsealed.
|
|
service PKIService {
|
|
rpc GetRootCert(GetRootCertRequest) returns (GetRootCertResponse);
|
|
rpc GetChain(GetChainRequest) returns (GetChainResponse);
|
|
rpc GetIssuerCert(GetIssuerCertRequest) returns (GetIssuerCertResponse);
|
|
}
|
|
|
|
message GetRootCertRequest {
|
|
string mount = 1;
|
|
}
|
|
message GetRootCertResponse {
|
|
bytes cert_pem = 1;
|
|
}
|
|
|
|
message GetChainRequest {
|
|
string mount = 1;
|
|
string issuer = 2;
|
|
}
|
|
message GetChainResponse {
|
|
bytes chain_pem = 1;
|
|
}
|
|
|
|
message GetIssuerCertRequest {
|
|
string mount = 1;
|
|
string issuer = 2;
|
|
}
|
|
message GetIssuerCertResponse {
|
|
bytes cert_pem = 1;
|
|
}
|