File: acmeinstance.py

package info (click to toggle)
freeipa 4.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 367,240 kB
  • sloc: javascript: 562,763; python: 310,289; ansic: 49,809; sh: 7,176; makefile: 2,589; xml: 343; sed: 16
file content (31 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Copyright (C) 2024  FreeIPA Contributors see COPYING for license
#

import logging

from ipaserver.install.dogtaginstance import DogtagInstance

logger = logging.getLogger(__name__)


class ACMEInstance(DogtagInstance):
    """
    ACME is deployed automatically with a CA subsystem but it is the
    responsibility of IPA to uninstall the service.

    This is mostly a placeholder for the uninstaller. We can
    eventually move the ACME installation routines into this class
    if we want but it might result in an extra PKI restart which
    would be slow.
    """
    def __init__(self, realm=None, host_name=None):
        super(ACMEInstance, self).__init__(
            realm=realm,
            subsystem="ACME",
            service_desc="ACME server",
            host_name=host_name
        )

    def uninstall(self):
        DogtagInstance.uninstall(self)