Skip to content

Error when renewing via run command (after successfully creating new cert via run) #1

@jeliker1

Description

@jeliker1

I have successfully created a cert like this:

~/certbot.venv/bin/certbot run --test-cert \
--installer oci \
--authenticator dns-oci \
--oci-profile $OCI_PROFILE \
--dns-oci-profile $OCI_PROFILE \
--oci-certificate-name $CERT_DOMAIN \
--oci-compartment-id $OCI_COMP_OCID \
--cert-path $CERT_DOMAIN/cert.pem \
--key-path $CERT_DOMAIN/privkey.pem \
--chain-path $CERT_DOMAIN/fullchain.pem \
--config-dir ~/.certbot \
--work-dir ~/.certbot \
--logs-dir ~/.certbot \
-m $CERT_EMAIL \
--agree-tos \
-n \
-d $CERT_DOMAIN

…then tried to renew like this

~/certbot.venv/bin/certbot run --test-cert \
--installer oci \
--authenticator dns-oci \
--oci-profile $OCI_PROFILE \
--dns-oci-profile $OCI_PROFILE \
--oci-certificate-id $CERT_OCID \
--cert-path $CERT_DOMAIN/cert.pem \
--key-path $CERT_DOMAIN/privkey.pem \
--chain-path $CERT_DOMAIN/fullchain.pem \
--config-dir ~/.certbot \
--work-dir ~/.certbot \
--logs-dir ~/.certbot \
-m $CERT_EMAIL \
--agree-tos \
-n \
-d $CERT_DOMAIN

…but I get an error.

 . . .

  File "/home/user1/certbot.venv/lib/python3.12/site-packages/certbot_oci_certs/installer.py", line 133, in __init__
    if len(response.data.items) != 1:
           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Certificate' object has no attribute 'items'

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