|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /lib/python3/dist-packages/certbot/__pycache__/ |
Upload File : |
U
�]Q3 � @ sD d Z ddlZddlZddlmZmZ ddlmZmZ zddlm Z e
e jd� W n ee
fk
rl dZ Y nX ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZmZ ddlZddlZddlmZmZ dd
lmZ ddlmZ ddl m!Z! ddlm"Z" e�#e$�Z%G dd� de&�Z'dd� Z(dd� Z)dd� Z*dd� Z+dd� Z,dS )z*Tools for checking certificate revocation.� N)�datetime� timedelta)�Popen�PIPE)�ocsp�signature_hash_algorithm)�x509)�default_backend)�
serialization)�hashes)�UnsupportedAlgorithm�InvalidSignature)�Optional�Tuple)�crypto_util)�errors)�
RenewableCert)�utilc @ s* e Zd ZdZd
dd�Zdd� Zdd� Zd S )�RevocationCheckerzEThis class figures out OCSP checking on this system, and performs it.Fc C s~ d| _ |pt | _| jrzt�d�s6t�d� d| _ d S tdddddgttdd �}|� � \}}d
|krpdd� | _
n
d
d� | _
d S )NF�opensslz-openssl not installed, can't check revocationTr �-header�var�val)�stdout�stderrZuniversal_newlinesz Missing =c S s
d| gS )NzHost=� ��hostr r �./usr/lib/python3/dist-packages/certbot/ocsp.py�<lambda>1 � z,RevocationChecker.__init__.<locals>.<lambda>c S s d| gS )NZHostr r r r r r 3 r )�brokenr �use_openssl_binaryr Z
exe_exists�logger�infor r Zcommunicate� host_args)�selfZenforce_openssl_binary_usageZtest_host_formatZ_out�errr r r �__init__"