方法列表
创建证书
admin
user
RPC
createSSLCert (CreateSSLCertRequest) returns (CreateSSLCertResponse)
HTTP
POST /SSLCertService/createSSLCert
输入对象:CreateSSLCertRequest:
{ // 是否启用 bool isOn; // 所属用户,仅管理员才能指定 int64 userId; // 名称 string name; // 描述(备注) string description; string serverName; bool isCA; bytes certData; bytes keyData; int64 timeBeginAt; int64 timeEndAt; []string dnsNames; []string commonNames; }
输出对象:CreateSSLCertResponse:
创建一组证书
admin
user
RPC
createSSLCerts (CreateSSLCertsRequest) returns (CreateSSLCertsResponse)
HTTP
POST /SSLCertService/createSSLCerts
输入对象:CreateSSLCertsRequest:
{ // 证书信息 []cert SSLCerts; // 用户ID int64 userId; cert { // 是否启用 bool isOn; // 名称 string name; // 描述(备注) string description; string serverName; bool isCA; bytes certData; bytes keyData; int64 timeBeginAt; int64 timeEndAt; []string dnsNames; []string commonNames; } }
输出对象:CreateSSLCertsResponse:
修改证书
admin
user
RPC
updateSSLCert (UpdateSSLCertRequest) returns (RPCSuccess)
HTTP
POST /SSLCertService/updateSSLCert
输入对象:UpdateSSLCertRequest:
输出对象:RPCSuccess:
{ }
删除证书
admin
user
RPC
deleteSSLCert (DeleteSSLCertRequest) returns (RPCSuccess)
HTTP
POST /SSLCertService/deleteSSLCert
输入对象:DeleteSSLCertRequest:
输出对象:RPCSuccess:
{ }
查找证书配置
admin
user
RPC
findEnabledSSLCertConfig (FindEnabledSSLCertConfigRequest) returns (FindEnabledSSLCertConfigResponse)
HTTP
POST /SSLCertService/findEnabledSSLCertConfig
输入对象:FindEnabledSSLCertConfigRequest:
输出对象:FindEnabledSSLCertConfigResponse:
计算匹配的证书数量
admin
user
RPC
countSSLCerts (CountSSLCertRequest) returns (RPCCountResponse)
HTTP
POST /SSLCertService/countSSLCerts
输入对象:CountSSLCertRequest:
{ // 可选项,是否为CA证书 bool isCA; // 可选项,是否可用(在有效期内) bool isAvailable; // 可选项,是否已过期 bool isExpired; // 可选项,离过期日的天数 int32 expiringDays; // 可选项,关键词 string keyword; // 可选项,用户ID,不填则表示读取管理员上传的证书 int64 userId; // 可选项,搜索使用的域名列表 []string domains; // 可选项,只列出用户上传的证书 bool userOnly; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页匹配的证书
admin
user
RPC
listSSLCerts (ListSSLCertsRequest) returns (ListSSLCertsResponse)
HTTP
POST /SSLCertService/listSSLCerts
输入对象:ListSSLCertsRequest:
{ // 可选项,是否为CA证书 bool isCA; // 可选项,是否可用(在有效期内) bool isAvailable; //可选项, 是否已过期 bool isExpired; // 可选项,离过期日的天数 int32 expiringDays; // 可选项,关键词 string keyword; // 可选项,用户ID,不填则表示读取管理员上传的证书 int64 userId; // 可选项,搜索使用的域名列表 []string domains; // 读取位置 int64 offset; // 读取长度,不能小于0 int64 size; // 可选项,只列出用户上传的证书 bool userOnly; }
输出对象:ListSSLCertsResponse:
计算有OCSP错误的证书数量
admin
RPC
countAllSSLCertsWithOCSPError (CountAllSSLCertsWithOCSPErrorRequest) returns (RPCCountResponse)
HTTP
POST /SSLCertService/countAllSSLCertsWithOCSPError
输入对象:CountAllSSLCertsWithOCSPErrorRequest:
{ // 关键词 string keyword; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出有OCSP错误的证书
admin
RPC
listSSLCertsWithOCSPError (ListSSLCertsWithOCSPErrorRequest) returns (ListSSLCertsWithOCSPErrorResponse)
HTTP
POST /SSLCertService/listSSLCertsWithOCSPError
输入对象:ListSSLCertsWithOCSPErrorRequest:
{ // 关键词 string keyword; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListSSLCertsWithOCSPErrorResponse:
忽略一组OCSP证书错误
admin
RPC
ignoreSSLCertsWithOCSPError (IgnoreSSLCertsWithOCSPErrorRequest) returns (RPCSuccess)
HTTP
POST /SSLCertService/ignoreSSLCertsWithOCSPError
输入对象:IgnoreSSLCertsWithOCSPErrorRequest:
输出对象:RPCSuccess:
{ }
重置一组证书OCSP错误状态
admin
RPC
resetSSLCertsWithOCSPError (ResetSSLCertsWithOCSPErrorRequest) returns (RPCSuccess)
HTTP
POST /SSLCertService/resetSSLCertsWithOCSPError
输入对象:ResetSSLCertsWithOCSPErrorRequest:
输出对象:RPCSuccess:
{ }
重置所有证书OCSP错误状态
admin
RPC
resetAllSSLCertsWithOCSPError (ResetAllSSLCertsWithOCSPErrorRequest) returns (RPCSuccess)
HTTP
POST /SSLCertService/resetAllSSLCertsWithOCSPError
输入对象:ResetAllSSLCertsWithOCSPErrorRequest:
{ }
输出对象:RPCSuccess:
{ }
查找证书所属用户
admin
RPC
findSSLCertUser (FindSSLCertUserRequest) returns (FindSSLCertUserResponse)
HTTP
POST /SSLCertService/findSSLCertUser
输入对象:FindSSLCertUserRequest:
{ // 证书ID int64 sslCertId; }
输出对象:FindSSLCertUserResponse:
{ // 用户信息,只包含几个基本的信息 User user; }