UNPKG

@stacksjs/tlsx

Version:

A TLS/HTTPS library with automation.

15 lines 581 B
import type { Cert, CertPath, TlsOption } from '../types'; /** * Store a certificate and its private key * @param cert Certificate and private key * @param options TLS options * @returns Path to the stored certificate */ export declare function storeCertificate(cert: Cert, options?: TlsOption): CertPath; /** * Store the CA Certificate * @param caCert - The CA Certificate * @param options - The options for storing the CA Certificate * @returns The path to the CA Certificate */ export declare function storeCACertificate(caCert: string, options?: TlsOption): CertPath;