1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/types/selfsigned.d.ts
Sebastian Malton 9266121afa Fix typings of selfsigned
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-21 15:04:43 -05:00

27 lines
654 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
declare module "selfsigned" {
export interface SelfSignedCert {
private: string;
public: string;
cert: string;
}
type GenerateAttributes = Array<any>;
interface GenerateOptions {
keySize?: number;
days?: number;
algorithm?: "sha1" | "sha256";
extensions?: any;
pkcs7?: boolean;
clientCertificate?: boolean;
clientCertificateCN?: string;
}
export function generate(attrs: GenerateAttributes, opts: GenerateOptions): SelfSignedCert;
}