Skip to content

certificate_pem, _, _ = _do_request() missing items #268

Open
@Xavron

Description

@Xavron

The certificate_pem, _, _ = _do_request() has some items not working with the switch to v02 a ways back. Any way to easily get this back even if I have to change the code myself? I need it to install to cpanel automatically as the signed_chain.crt isn't enough on its own for the cpanel api. In particular, I need the second variable returned previously called result used in the following. Unless someone knows of a equal or better way to do this than mine. Thanks.

-    code, result = _send_signed_request(CA + "/acme/new-cert", {
-        "resource": "new-cert",
...
+    # download the certificate
+    certificate_pem, _, _ = _do_request(order['certificate'], err_msg="Certificate download failed")
    log.info("Certificate signed!")
-    return """-----BEGIN CERTIFICATE-----\n{0}\n-----END CERTIFICATE-----\n""".format(
-        "\n".join(textwrap.wrap(base64.b64encode(result).decode('utf8'), 64)))
+    return certificate_pem

bb248e0#diff-7d802cf8b579d90e224a041b9e054757a417bf1fc394fde3ea2db37d0fba3922

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions