Files
linux-cloud-router/web/src/https.ts
T

17 lines
559 B
TypeScript

import type { AcmeProvider, HttpsCertificateSource } from './api.ts'
/** The labels of the sources of the server's certificate. */
export const CERTIFICATE_LABELS: Record<HttpsCertificateSource, string> = {
acme: 'ACME',
'self-signed': 'Self-signed',
ca: 'Servers Issuing CA of the server\'s PKI',
external: 'Another CA: a CSR signed there, or a PFX',
}
/** The labels of the ACME providers. */
export const PROVIDER_LABELS: Record<AcmeProvider, string> = {
letsencrypt: 'Let\'s Encrypt',
zerossl: 'ZeroSSL',
custom: 'Custom directory URL',
}