-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzerossl.d.ts
18 lines (18 loc) · 1.19 KB
/
zerossl.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Certificate, CertificateList, CertificateRecord, CertificateSigningRequestOptions, CertificateSigningRequestValidationResult, CreateCertificateOptions, KeyPair, ListCertificateOptions, VerificationStatus, VerifyDomainOptions, ZeroSSLOptions } from './types';
export declare class ZeroSSL {
options: ZeroSSLOptions;
constructor(options: ZeroSSLOptions);
private performRequest;
createCertificate(options: CreateCertificateOptions): Promise<CertificateRecord>;
verifyDomains(id: string, options: VerifyDomainOptions): Promise<CertificateRecord>;
downloadCertificate(id: string): Promise<Certificate>;
getCertificate(id: string): Promise<CertificateRecord>;
listCertificates(options?: ListCertificateOptions): Promise<CertificateList>;
verificationStatus(id: string): Promise<VerificationStatus>;
resendVerification(id: string): Promise<boolean>;
cancelCertificate(id: string): Promise<boolean>;
revokeCertificate(id: string): Promise<boolean>;
validateCSR(csr: string): Promise<CertificateSigningRequestValidationResult>;
generateKeyPair(bits?: number): KeyPair;
generateCSR(keypair: KeyPair, options: CertificateSigningRequestOptions): string;
}