133 lines
3.6 KiB
Protocol Buffer
133 lines
3.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = ".;certmanagercontrol";
|
|
|
|
package certmanagercontrol;
|
|
|
|
service Control {
|
|
rpc getStatus(getStatusParams) returns (getStatusResult) {};
|
|
|
|
rpc createIssuerPair(createIssuerPairParams) returns (createIssuerPairResult) {};
|
|
rpc importIssuerPair(importIssuerPairParams) returns (importIssuerPairResult) {};
|
|
rpc revokeIssuerPair(revokeIssuerPairParams) returns (revokeIssuerPairResult) {};
|
|
rpc unrevokeIssuerPair(unrevokeIssuerPairParams) returns (unrevokeIssuerPairResult) {};
|
|
rpc listIssuerPairs(listIssuerPairsParams) returns (listIssuerPairsResult) {};
|
|
rpc getIssuerCertificate(getIssuerCertificateParams) returns (getIssuerCertificateResult) {};
|
|
|
|
rpc createServicePair(createServicePairParams) returns (createServicePairResult) {};
|
|
rpc revokeServicePair(revokeServicePairParams) returns (revokeServicePairResult) {};
|
|
rpc listServicePairs(listServicePairsParams) returns (listServicePairsResult) {};
|
|
rpc getServicePair(getServicePairParams) returns (getServicePairResult) {};
|
|
}
|
|
|
|
message getStatusParams {}
|
|
message getStatusResult {
|
|
string message = 1;
|
|
}
|
|
|
|
message createIssuerPairParams {
|
|
string issuerName = 1;
|
|
string validUntil = 2;
|
|
bool selfSigned = 3;
|
|
int64 uplevelIssuerID = 4;
|
|
string uplevelIssuerName = 5;
|
|
|
|
}
|
|
message createIssuerPairResult {
|
|
int64 issuerID = 1;
|
|
string caCertificate = 2;
|
|
}
|
|
|
|
message importIssuerPairParams {
|
|
string certificate = 1;
|
|
string key = 2;
|
|
}
|
|
message importIssuerPairResult {
|
|
int64 issuerID = 1;
|
|
}
|
|
|
|
message revokeIssuerPairParams {
|
|
int64 issuerID = 1;
|
|
string issuerName = 2;
|
|
}
|
|
message revokeIssuerPairResult {}
|
|
|
|
message unrevokeIssuerPairParams {
|
|
int64 issuerID = 1;
|
|
string issuerName = 2;
|
|
|
|
}
|
|
message unrevokeIssuerPairResult {}
|
|
|
|
message listIssuerPairsParams {}
|
|
message listIssuerPairsResult {
|
|
repeated IssierShortDescriptor issiers = 1;
|
|
}
|
|
|
|
message IssierShortDescriptor {
|
|
int64 issuerID = 1;
|
|
string issuerName = 2;
|
|
bool revoked = 3;
|
|
}
|
|
|
|
message getIssuerCertificateParams {
|
|
int64 issuerID = 1;
|
|
string issuerName = 2;
|
|
}
|
|
message getIssuerCertificateResult {
|
|
string caCertificate = 1;
|
|
}
|
|
|
|
message createServicePairParams {
|
|
string issuerName = 1;
|
|
int64 issuerID = 2;
|
|
string serviceName = 3;
|
|
string validUntil = 4;
|
|
repeated string hostnames = 5;
|
|
repeated string inetAddress = 6;
|
|
}
|
|
message createServicePairResult {
|
|
int64 servicePairId = 1;
|
|
string ca = 2;
|
|
string cerificate = 3;
|
|
string key = 4;
|
|
}
|
|
|
|
message revokeServicePairParams {
|
|
int64 serviceID = 1;
|
|
string issuerName = 2;
|
|
string serviceName = 3;
|
|
string certificate = 4;
|
|
}
|
|
message revokeServicePairResult {}
|
|
|
|
message unrevokeServicePairParams {
|
|
int64 serviceID = 1;
|
|
string issuerName = 2;
|
|
string serviceName = 3;
|
|
string certificate = 4;
|
|
}
|
|
message unrevokeServicePairResult {}
|
|
|
|
message ServiceShortDescriptor {
|
|
int64 serviceID = 1;
|
|
string serviceName = 2;
|
|
string issuerName = 3;
|
|
int64 issuerID = 4;
|
|
bool revoked = 5;
|
|
}
|
|
|
|
message listServicePairsParams {}
|
|
message listServicePairsResult {
|
|
repeated ServiceShortDescriptor services = 1;
|
|
}
|
|
|
|
message getServicePairParams {
|
|
int64 serviceID = 1;
|
|
string serviceName = 2;
|
|
}
|
|
message getServicePairResult {
|
|
string caCertificate = 1;
|
|
string certificate = 2;
|
|
}
|