diff --git a/press/press/doctype/tls_certificate/tls_certificate.py b/press/press/doctype/tls_certificate/tls_certificate.py index 5c978000e7d..1ad174dc2b8 100644 --- a/press/press/doctype/tls_certificate/tls_certificate.py +++ b/press/press/doctype/tls_certificate/tls_certificate.py @@ -188,6 +188,9 @@ def configure_full_chain(self): if self.certificate and self.intermediate_chain: self.full_chain = f"{self.certificate}\n{self.intermediate_chain}" + if not self.intermediate_chain: + self.full_chain = self.certificate + def _extract_certificate_details(self): x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, self.certificate) self.decoded_certificate = OpenSSL.crypto.dump_certificate(