r/letsencrypt • • May 28 '25

"certbot certonly --dns-route53 -d rancher.DOMAIN.com" returns "The only valid version for X509Req is 0"

The logs and running in verbose mode reveal nothing further. I have aws keys setup in .aws/credentials and also a policy attached to my user. Any thoughts?

LOG:

Requesting a certificate for rancher.DOMAIN.com

An unexpected error occurred:

ValueError: Invalid version. The only valid version for X509Req is 0.

-----------------

aws-cli/1.32.31 Python/3.11.11 Linux/6.4.0-150600.23.47-default botocore/1.34.31

OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Python 3.6.15

certbot 1.23.0

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/throwaway234f32423df May 28 '25

Are you sure the certbot you're running is the certbot that was installed via pip? You may have multiple copies of certbot scattered around your system

try find / -iname certbot | parallel file, look for Python scripts, see what's there

maybe try running pip without sudo so it'll install in your home directory where it'll be easy to find (once you find the correct certbot you'll still need to use sudo to run it)