mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Added check to see if certificate exists
This commit is contained in:
@@ -74,8 +74,10 @@ def verify_challenge(address, r, nonce, socksify=False):
|
||||
cert_chain = conn.get_peer_cert_chain()
|
||||
|
||||
#Ensure certificate chain form is correct
|
||||
if cert_chain is None:
|
||||
return False, "Client did not provide a certificate"
|
||||
if len(cert_chain) != 1:
|
||||
return False, "Incorrect number of certificates in chain"
|
||||
return False, "Chocolate client should only include 1 cert"
|
||||
|
||||
for i in range(0,cert_chain[0].get_ext_count()):
|
||||
ext = cert_chain[0].get_ext_at(i)
|
||||
|
||||
Reference in New Issue
Block a user