xacmestoreerror类型

store 模块稳定错误码(错误域 "xrt.acme.store")。

typedef enum xacmestoreerror { XACME_STORE_ERROR_ARGUMENT = 1, XACME_STORE_ERROR_IO, XACME_STORE_ERROR_NOT_FOUND, XACME_STORE_ERROR_PARSE } xacmestoreerror;

xrtAcmeStoreSaveAccount函数

保存账户密钥 PEM(按 CA 隔离;原子替换)。POSIX 同步目录项;

XRT_API bool xrtAcmeStoreSaveAccount(cstr sRoot, cstr sDirectoryUrl, cstr sAccountPem)

xrtAcmeStoreLoadAccount函数

读取账户密钥 PEM(xrtMalloc/xrtFree);未注册返回 NULL 且置

XRT_API str xrtAcmeStoreLoadAccount(cstr sRoot, cstr sDirectoryUrl)

xrtAcmeStoreSaveCert函数

保存旧布局的独立证书链与 CA 溯源;已有 current 的域名拒绝此操作。

XRT_API bool xrtAcmeStoreSaveCert(cstr sRoot, cstr sPrimaryDomain, cstr sChainPem, cstr sDirectoryUrl)

xrtAcmeStoreLoadCert函数

读取证书链 PEM;不存在返回 NULL 且置 XERR_NOT_FOUND。

XRT_API str xrtAcmeStoreLoadCert(cstr sRoot, cstr sPrimaryDomain)

xrtAcmeStoreLoadCertCa函数

读取签发时使用的 CA directory(meta.txt);无溯源返回 NULL。

XRT_API str xrtAcmeStoreLoadCertCa(cstr sRoot, cstr sPrimaryDomain)

xrtAcmeStoreSaveGrant函数

签发产物先写入独立的 0700 版本目录,三文件齐备后原子替换 current。

XRT_API bool xrtAcmeStoreSaveGrant(cstr sRoot, cstr sPrimaryDomain, const xacmeissuegrant* pGrant, cstr sDirectoryUrl)

xrtAcmeStoreLoadGrant函数

固定一次 current 再读取同一版本的链与私钥。key.pem 或 fullchain.pem

XRT_API bool xrtAcmeStoreLoadGrant(cstr sRoot, cstr sPrimaryDomain, xacmeissuegrant* pOut)

xrtAcmeStoreListDomains函数

枚举 <root>/certs/ 下的域名(续签守护遍历用);%2A 通配符目录

XRT_API bool xrtAcmeStoreListDomains(cstr sRoot, char (*sOutDomains)[256], size_t iCapacity, size_t* pOutCount)

xrtAcmeStoreNeedRenew函数

续签判定:解析本地链叶证书的 notAfter,剩余寿命不足

XRT_API bool xrtAcmeStoreNeedRenew(cstr sRoot, cstr sPrimaryDomain, int iRenewalDays, bool* pbNeed)

XACME_STORE_ERROR_ARGUMENT常量

契约注释见公共头文件。

XACME_STORE_ERROR_ARGUMENT

XACME_STORE_ERROR_IO常量

契约注释见公共头文件。

XACME_STORE_ERROR_IO

XACME_STORE_ERROR_NOT_FOUND常量

契约注释见公共头文件。

XACME_STORE_ERROR_NOT_FOUND

XACME_STORE_ERROR_PARSE常量

契约注释见公共头文件。

XACME_STORE_ERROR_PARSE