import { CertificateGeneration, CryptoApi } from "authentik-api"; import { CertificateKeyPair } from "authentik-api/src"; import { gettext } from "django"; import { customElement } from "lit-element"; import { html, TemplateResult } from "lit-html"; import { DEFAULT_CONFIG } from "../../api/Config"; import { Form } from "../../elements/forms/Form"; import "../../elements/forms/HorizontalFormElement"; @customElement("ak-crypto-certificate-generate-form") export class CertificateKeyPairForm extends Form { getSuccessMessage(): string { return gettext("Successfully generated certificate-key pair."); } send = (data: CertificateGeneration): Promise => { return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsGenerate({ data: data }); }; renderForm(): TemplateResult { return html`

${gettext("Optional, comma-separated SubjectAlt Names.")}

`; } }