certapi 0.4.7__tar.gz → 0.4.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {certapi-0.4.7/src/certapi.egg-info → certapi-0.4.8}/PKG-INFO +1 -1
- {certapi-0.4.7 → certapi-0.4.8}/setup.py +1 -1
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/http.py +3 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/issuers/AcmeCertIssuer.py +3 -2
- {certapi-0.4.7 → certapi-0.4.8/src/certapi.egg-info}/PKG-INFO +1 -1
- {certapi-0.4.7 → certapi-0.4.8}/MANIFEST.in +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/README.md +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/pyproject.toml +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/setup.cfg +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/Acme.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/AcmeError.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/Challenge.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/Order.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/acme/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/ChallengeSolver.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/FileSystemChallengeSolver.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/InmemoryChallengeSolver.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/cloudflare/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/cloudflare/cloudflare_challenge_solver.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/cloudflare/cloudflare_client.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/digitalocean/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/digitalocean/digitalocean_challenge_solver.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/digitalocean/digitalocean_client.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/client/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/client/cert_manager_client.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/crypto/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/crypto/crypto.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/crypto/crypto_classes.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/errors.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/http/HttpClientBase.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/http/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/http/types.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/issuers/SelfCertIssuer.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/issuers/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/issuers/abstract_certissuer.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/FileSystemKeyStore.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/KeyStore.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/PostgresqlKeyStore.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/RemoteKeyStore.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/SqliteKeyStore.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/keystore/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/manager/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/manager/acme_cert_manager.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/server/__init__.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/server/api.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/server/cert_api.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/server/key_api.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/util.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi/utils.py +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi.egg-info/SOURCES.txt +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi.egg-info/dependency_links.txt +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi.egg-info/requires.txt +0 -0
- {certapi-0.4.7 → certapi-0.4.8}/src/certapi.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import requests
|
|
2
2
|
from .AcmeError import *
|
|
3
|
+
import json as j
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
def request(method, step: str, url: str, json=None, headers=None, throw=True) -> requests.Response:
|
|
@@ -21,6 +22,8 @@ def request(method, step: str, url: str, json=None, headers=None, throw=True) ->
|
|
|
21
22
|
step,
|
|
22
23
|
)
|
|
23
24
|
if 199 <= res.status_code > 299:
|
|
25
|
+
if(json):
|
|
26
|
+
print("Request:",j.dumps(json))
|
|
24
27
|
[print(x, y) for (x, y) in res.headers.items()]
|
|
25
28
|
print("Response:", res.text)
|
|
26
29
|
json_data = None
|
|
@@ -55,11 +55,12 @@ class AcmeCertIssuer(CertIssuer):
|
|
|
55
55
|
|
|
56
56
|
# acme can use our key and immediately allow certificate registration if we have recently proved domain ownership.
|
|
57
57
|
if len(challenges) > 0 and challenge_solver.supported_challenge_type() == "dns-01":
|
|
58
|
-
print("Waiting
|
|
59
|
-
time.sleep(
|
|
58
|
+
print("Waiting 20 seconds for DNS propagation .. ")
|
|
59
|
+
time.sleep(20) # sleep 20 seconds for dns propagation
|
|
60
60
|
|
|
61
61
|
for c in challenges:
|
|
62
62
|
c.verify(challenge_solver.supported_challenge_type())
|
|
63
|
+
|
|
63
64
|
while len(remaining_now) > 0:
|
|
64
65
|
if time.time() > end and counter > 4:
|
|
65
66
|
print("Order finalization time out")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/cloudflare/cloudflare_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certapi-0.4.7 → certapi-0.4.8}/src/certapi/challenge_solver/dns/digitalocean/digitalocean_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|