123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import type { AcmeUser } from '@/api/acme_user'
- import type { ModelBase } from '@/api/curd'
- import type { DnsCredential } from '@/api/dns_credential'
- import type { PrivateKeyType } from '@/constants'
- import Curd from '@/api/curd'
- export interface Cert extends ModelBase {
- name: string
- domains: string[]
- filename: string
- ssl_certificate_path: string
- ssl_certificate: string
- ssl_certificate_key_path: string
- ssl_certificate_key: string
- auto_cert: number
- challenge_method: string
- dns_credential_id: number
- dns_credential?: DnsCredential
- acme_user_id: number
- acme_user?: AcmeUser
- key_type: string
- log: string
- certificate_info: CertificateInfo
- sync_node_ids: number[]
- }
- export interface CertificateInfo {
- subject_name: string
- issuer_name: string
- not_after: string
- not_before: string
- }
- export interface CertificateResult {
- ssl_certificate: string
- ssl_certificate_key: string
- key_type: PrivateKeyType
- }
- const cert: Curd<Cert> = new Curd('/cert')
- export default cert
|