File: //snap/certbot/4965/lib/python3.12/site-packages/acme/__pycache__/messages.cpython-312.pyc
�
N�h�k � �l � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
dd lmZ dd
lm
Z
ddlZddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ dZi dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�d3d4d5d6d7d8d9d:d;d<� �Zi ej1 � D � �ci c] \ } }e| z |��
c}} �Zd=ed>efd?�Z G d@� dAej: e� Z G dB� dCe� Z ed%� Z edD� Z! G dE� dFejD � Z# G dG� dHejD ejH � Z$ G dI� dJe� Z% e%dK� Z& e%dL� Z' e%dM� Z( e%dN� Z) e%dO� Z* e%dP� Z+ e%dQ� Z, e%dR� Z- G dS� dTej: � Z. G dU� dVejD � Z/ G dW� dXe/� Z0 G dY� dZejD � Z1 G d[� d\� Z2 ed]d^�_� Z3 G d`� d^e1� Z4 G da� dbe4� Z5 G dc� dde4� Z6 G de� dfe0� Z7 G dg� dhe1� Z8 G di� dje/� Z9 G dk� dle1� Z: G dm� dne:� Z; G do� dpe:� Z< G dq� dre0� Z= G ds� dtejD � Z> G du� dve0� Z? G dw� dxejD � Z@ G dy� dze1� ZA G d{� d|e0� ZB G d}� d~eA� ZC G d� d�e1� ZDyc c}} w )�zACME protocol messages.� )�HashableN)�Any)�Iterator)�Mapping)�MutableMapping)�Optional)�TypeVar)�x509)�
challenges)�errors)�fields)�jws)�utilzurn:ietf:params:acme:error:�accountDoesNotExistz4The request specified an account that does not exist�alreadyRevokedzOThe request specified a certificate to be revoked that has already been revoked�badCSRz2The CSR is unacceptable (e.g., due to a short key)�badNoncez1The client sent an unacceptable anti-replay nonce�badPublicKeyz>The JWS was signed by a public key the server does not support�badRevocationReasonz;The revocation reason provided is not allowed by the server�badSignatureAlgorithmz@The JWS was signed with an algorithm the server does not support�caaz\Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate�compoundzBSpecific error conditions are indicated in the "subproblems" array�
connectionz?The server could not connect to the client to verify the domain�dnszAThere was a problem with a DNS query during identifier validation�dnssecz4The server could not validate a DNSSEC signed domain�incorrectResponsez;Response received didn't match the challenge's requirements�invalidEmailz1The provided email for a registration was invalid�invalidContactz$The provided contact URI was invalid� malformedz!The request message was malformed�rejectedIdentifierz9The server will not issue certificates for the identifierzLThe request attempted to finalize an order that is not ready to be finalizedz,There were too many requests of a given typez(The server experienced an internal errorz=The server experienced a TLS error during domain verificationz)The client lacks sufficient authorizationz@A contact URL for an account used an unsupported protocol schemez*The server could not resolve a domain namez'An identifier is of an unsupported typez,The server requires external account binding) �
orderNotReady�rateLimited�serverInternal�tls�unauthorized�unsupportedContact�unknownHost�unsupportedIdentifier�externalAccountRequired�err�returnc �` � t | t � r| j �t | j v S y)z#Check if argument is an ACME error.F)�
isinstance�Error�typ�ERROR_PREFIX)r* s �}/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/acme/messages.py�
is_acme_errorr2 >