trusted-cert
Version:
A simple tool to generate self signed x509 certificate
13 lines (12 loc) • 415 B
TypeScript
/**
* 添加到系统钥匙串,信任证书
*/
export declare const addToKeyChain: (certificatePath: string) => void;
/**
* 获取钥匙串里有本工具创建的证书sha1列表
*/
export declare const getKeyChainCertSha1List: (CN: string) => string[];
/**
* 删除钥匙串里指定的证书
*/
export declare const delTrusted: ((certificateName: string) => Promise<boolean>) | (() => void);