鏡像自
https://github.com/mail-in-a-box/mailinabox.git
已同步 2026-10-05 03:39:53 +02:00
fix problem with certificate verification on OpenVZ servers
此提交包含在:
@@ -708,7 +708,7 @@ def check_certificate(domain, ssl_certificate, ssl_private_key, warn_if_expiring
|
|||||||
"openssl",
|
"openssl",
|
||||||
"verify", "-verbose",
|
"verify", "-verbose",
|
||||||
"-purpose", "sslserver", "-policy_check",]
|
"-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],
|
+ [ssl_certificate],
|
||||||
input=b"\n\n".join(ssl_cert_chain[1:]),
|
input=b"\n\n".join(ssl_cert_chain[1:]),
|
||||||
trap=True)
|
trap=True)
|
||||||
|
|||||||
新增問題並參考
封鎖使用者