|
@@ -10,9 +10,6 @@ from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
|
class CertPathProvider(ABC):
|
|
|
- @abstractmethod
|
|
|
- def provide_cert_path(self, fqdn: str) -> ntpath:
|
|
|
- pass
|
|
|
|
|
|
@abstractmethod
|
|
|
def provide_fullchain_path(self, fqdn: str) -> ntpath:
|
|
@@ -33,9 +30,6 @@ class AcmeToolCertPathProvider(CertPathProvider):
|
|
|
def _join_paths(self, fqdn: str, file_name: str) -> ntpath:
|
|
|
return os.path.join(self._acme_dir, "live", fqdn, file_name)
|
|
|
|
|
|
- def provide_cert_path(self, fqdn: str) -> ntpath:
|
|
|
- return self._join_paths(fqdn, "cert")
|
|
|
-
|
|
|
def provide_fullchain_path(self, fqdn: str) -> ntpath:
|
|
|
return self._join_paths(fqdn, "fullchain")
|
|
|
|
|
@@ -47,9 +41,6 @@ class GetSslCertPathProvider(CertPathProvider):
|
|
|
def _join_paths(self, fqdn: str, file_name: str) -> ntpath:
|
|
|
return os.path.join(self._acme_dir, fqdn, file_name)
|
|
|
|
|
|
- def provide_cert_path(self, fqdn: str) -> ntpath:
|
|
|
- self._join_paths(fqdn, fqdn + ".crt")
|
|
|
-
|
|
|
def provide_fullchain_path(self, fqdn: str) -> ntpath:
|
|
|
self._join_paths(fqdn, "fullchain.crt")
|
|
|
|