|
1 |
| -#!/usr/bin/env python |
2 |
| -# |
3 |
| -# Copyright 2019-2020 Flavio Garcia |
| 1 | +# Copyright 2019-2025 Flavio Garcia |
4 | 2 | # Copyright 2016-2017 Veeti Paananen under MIT License
|
5 | 3 | #
|
6 | 4 | # Licensed under the Apache License, Version 2.0 (the "License");
|
|
19 | 17 | ACME API client.
|
20 | 18 | """
|
21 | 19 |
|
22 |
| -from . import get_version |
23 |
| -from .crypto import (export_certificate_for_acme, generate_header, jose_b64, |
24 |
| - sign_request, sign_request_v2) |
25 |
| -from .errors import AccountAlreadyExistsError, AcmeError |
26 |
| -from .model import Order, Challenge |
27 |
| -from collections import namedtuple |
| 20 | +from automatoes import get_version |
| 21 | +from automatoes.crypto import (export_certificate_for_acme, generate_header, |
| 22 | + jose_b64, sign_request, sign_request_v2) |
| 23 | +from automatoes.errors import AccountAlreadyExistsError, AcmeError |
| 24 | +from automatoes.model import (Challenge, IssuanceResult, |
| 25 | + NewAuthorizationResult, Order, |
| 26 | + RegistrationResult) |
28 | 27 | import copy
|
29 | 28 | import datetime
|
30 | 29 | import hashlib
|
@@ -241,12 +240,6 @@ def path(self, path):
|
241 | 240 | return urljoin(self.url, path)
|
242 | 241 |
|
243 | 242 |
|
244 |
| -RegistrationResult = namedtuple("RegistrationResult", "contents uri terms") |
245 |
| -NewAuthorizationResult = namedtuple("NewAuthorizationResult", "contents uri") |
246 |
| -IssuanceResult = namedtuple("IssuanceResult", |
247 |
| - "certificate location intermediate") |
248 |
| - |
249 |
| - |
250 | 243 | class AcmeV2(Acme):
|
251 | 244 |
|
252 | 245 | def __init__(self, url, account, directory="directory", verify=None,
|
|
0 commit comments