From 39270a8e3556a45ca0b94d5bf409fd3a9a1b3e6f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 15 Aug 2015 17:32:40 +0200 Subject: [PATCH] fix problem with certificate verification on OpenVZ servers --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index 52494d49..bf39bf9f 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -708,7 +708,7 @@ def check_certificate(domain, ssl_certificate, ssl_private_key, warn_if_expiring "openssl", "verify", "-verbose", "-purpose", "sslserver", "-policy_check",] - + ([] if len(ssl_cert_chain) == 1 else ["-untrusted", "/dev/stdin"]) + + ([] if len(ssl_cert_chain) == 1 else ["-untrusted", "/proc/self/fd/0"]) + [ssl_certificate], input=b"\n\n".join(ssl_cert_chain[1:]), trap=True)