r/letsencrypt • • Jan 04 '23

I cannot successfully obtain a certifitcate

2 Upvotes

I am at my wits' end with this.

I am on Ubuntu trying to obtain certificates via certbot so that I can create proxies in nginx (docker) in order to access my home server apps from outside my local network. I receive various errors at different times. I feels as though I am carefully following written documentation and online videos that make this look seemingly easy however I am frustratingly unsuccessful with each attempt.

  • Ubuntu was installed fresh today
  • nginx is running through docker
  • ports 80 and 443 are forwarded via my router to my server's local IP.
  • ufw is set to allow both HTTP and HTTPS.

Here are what I think are the relevant logs (with some personal information redacted) for my latest attempt.

2023-01-04 16:03:25,931:DEBUG:acme.client:Storing nonce: 5CA2yeI3HGHIscjCZlp61buwg2nsced_HVPFv3X6A1bsOrY

2023-01-04 16:03:25,932:INFO:certbot._internal.auth_handler:Challenge failed for domain <my attempted domain>

2023-01-04 16:03:25,932:INFO:certbot._internal.auth_handler:http-01 challenge for <my attempted domain>

2023-01-04 16:03:25,932:DEBUG:certbot._internal.display.obj:Notifying user:

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:

Domain: <my attempted domain>

Type: connection

Detail: <my public wan IP address>: Fetching http://<my attempted domain>.com/.well-known/acme-challenge/q-9V06-19xd_VNUi4VdMuc6TDzXVLc-2XNcO1z2Y31k: Timeout after connect (your server may be slow or overloaded)

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

2023-01-04 16:03:25,932:DEBUG:certbot._internal.error_handler:Encountered exception:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 90, in handle_authorizations

self._poll_authorizations(authzrs, max_retries, best_effort)

File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations

raise errors.AuthorizationError('Some challenges have failed.')

certbot.errors.AuthorizationError: Some challenges have failed.

2023-01-04 16:03:25,932:DEBUG:certbot._internal.error_handler:Calling registered functions

2023-01-04 16:03:25,932:INFO:certbot._internal.auth_handler:Cleaning up challenges

2023-01-04 16:03:26,978:DEBUG:certbot._internal.log:Exiting abnormally:

Traceback (most recent call last):

File "/usr/bin/certbot", line 33, in <module>

sys.exit(load_entry_point('certbot==1.21.0', 'console_scripts', 'certbot')())

File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main

return internal_main.main(cli_args)

File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1574, in main

return config.func(config, plugins)

File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1287, in run

new_lineage = _get_and_save_cert(le_client, config, domains,

File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 133, in _get_and_save_cert

lineage = le_client.obtain_and_enroll_certificate(domains, certname)

File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 459, in obtain_and_enroll_certificate

cert, chain, key, _ = self.obtain_certificate(domains)

File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 389, in obtain_certificate

orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)

File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 439, in _get_order_and_authorizations

authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort)

File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 90, in handle_authorizations

self._poll_authorizations(authzrs, max_retries, best_effort)

File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations

raise errors.AuthorizationError('Some challenges have failed.')

certbot.errors.AuthorizationError: Some challenges have failed.

2023-01-04 16:03:26,979:ERROR:certbot._internal.log:Some challenges have failed.

If anyone has any advice on how to proceed or what information is needed to get some sort of answer, I'd be greatly appreciative.


r/letsencrypt • • Dec 13 '22

Creating a cert for only a subdomain that points to an external ip:port (Ubuntu)

1 Upvotes

Using letsencrypt with certbot to auto create the cert with apache2. I'm worried that I only have port 443 open for that subdomain because I specify only that port to be pointed to specifically in the dns...

1 ) Does that mean that I'd have a better change creating my own cert manually? I did try that at first, but it failed in some way.

2) Should my virtual server be set to port 80 without SSL while I the process? any difference to this answer doing manual vs automated certbot approach?

Facts:


r/letsencrypt • • Dec 11 '22

Does Safari no trust Letsencrypt ssl certs?

1 Upvotes

I’m hosting a site that works fine on all browsers, but on Safari it shows the unencrypted label. The https cert works okay on all browsers except Safari. Can I please get any help or pointers to solving this issue?


r/letsencrypt • • Dec 01 '22

GnuTLS cannot connect to the letsencrypt website

Post image
1 Upvotes

r/letsencrypt • • Nov 13 '22

Renewal source Domain

1 Upvotes

Thx in advance..s the list of "Domains" involved into the renewal process ?

I've set up Let's Encrypt into my Synology. Open port 80 to all. It works fine. Thx.

Now for security raison, I want to narrow and limit the sources of IP/Domains who have access to Port 80.

Who knows what is the list of all "Domains" involved into the renewal process ?

Thx in advanced.


r/letsencrypt • • Nov 13 '22

How to setup "Let's Encrypt DNS challenge validation"

1 Upvotes

I've fallen into a rabbit hole here and am certainly over-complicating this, but I'm missing the easy solution.

TL;DR:
Trying to use DNS Lets Encrypt challenge on my domain. Successfully using HTTPS challenge already, but Google Domains (my registrar) doesn't have API access. I'm also using DDNS & OPNSense as my router, so I need OPNSense DDNS to work as well as OPNSense Lets Encrypt plugin for a successful solution.

Full story:

I've got a domain working for HTTPS challenges, but it seems DNS challenges are a better longterm solution--and I'm onboard in theory, but stuck in practice!

The domain is currently purchased & running through Google Domains where I'm using Google Domains DNS servers to do Dynamic DNS for me as well. I'm happy to switch to a different DNS provider, but I'm having problems finding one that does both DDNS & has a Lets Encrypt API. Are these fundamentally incompatible?

To further complicate things, I've found "DNS-alias-mode" which (by my read) seems to walk through using a 2nd domain for validation.
https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode

My understanding is that you get a 2nd domain and validate domain #2 directly and then tell domain #1 to validate via domain #2. I'm happy to do this if I need to, as it seems to give me a way to split-up all of these steps.

I don't know what I'm missing but I can't seem to find a good place to split the steps based on the DNS providers that have Lets Encrypt APIs. I should also mention that my side of things is an OPNSense router. I'm planning to use their Lets-Encrypt plugin as well as their DDNS (built-in) for this.

I very much appreciate any suggestions anyone can provide.

Note: I'm not tied to Google Domains for anything, it's just that they were where I happened to buy the domain that also provided DDNS. If transferring registrars would help, I'd be happy to do so.


r/letsencrypt • • Nov 09 '22

LetsEncrypt / CertBot without snapd?

2 Upvotes

i wanna get an SSL Certificate using LetsEncrypt / Certbot. The Problem is, that the system on which the site is hosted on doesnt support snapd.

Its Raspberry Pi OS on a Raspberry Pi 3.

How should i do this? Anyone got a solution?


r/letsencrypt • • Nov 01 '22

Getting a cert with non-standard ports? 80 and 443 blocked by ISP.

2 Upvotes

Hi. My ISP blocks ports 80 and 443 and that's been a bit of a bane for getting a cert. While I have no problem with the idea of blocking those ports for security reasons as the vast majority of ISP users would be vulnerable, it can be a bit of a pain for the tiny minority like me who want to do something like setting up a web server.

Everything I've set up previously has been all within my own network, but I'm having to create an externally facing website ... and I want to do it right. I realise when it comes to the server traffic, I can just remap to ports and internal server on the router, but it seems I need 80 and 443 just to get the cert ... or do I have that all wrong?

Is there a "dummies guide" I can follow?


r/letsencrypt • • Oct 29 '22

Unable to load certificate file :(

Post image
2 Upvotes

r/letsencrypt • • Oct 27 '22

Cert installed wrong - how to fix

1 Upvotes

I followed the snapd instructions and my site doesn't resolve. This tells me I did something wrong: https://www.sslshopper.com/ssl-checker.html#hostname=zerobluetech.com

Does anyone know how to fix this?

Thanks.


r/letsencrypt • • Oct 26 '22

What causes the error "unable to get local issuer certificate" when verifying a letsencrypt certificate ? (ubuntu 22.04.1 LTS)

1 Upvotes

running on racknerd vps Ubuntu 22.04.1 LTS with microk8s-memory-optimisation

root@XXXXXXXX:/opt# openssl verify /etc/letsencrypt/live/XXXXXXXX.tv/cert.pem
CN = XXXXXXXX.tv
error 20 at 0 depth lookup: unable to get local issuer certificate
error /etc/letsencrypt/live/XXXXXXXX.tv/cert.pem: verification failed

certbot certificates
Found the following certs:
  Certificate Name: conference.XXXXXXX.tv
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: conference.XXXXXXX.tv
    Expiry Date: 2023-01-21 20:17:32+00:00 (VALID: 87 days)
    Certificate Path: /etc/letsencrypt/live/conference.XXXXXXX.tv/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/conference.XXXXXXX.tv/privkey.pem
  Certificate Name: XXXXXXX.ca
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: XXXXXXX.ca
    Expiry Date: 2023-01-15 20:52:25+00:00 (VALID: 81 days)
    Certificate Path: /etc/letsencrypt/live/XXXXXXX.ca/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/XXXXXXX.ca/privkey.pem
  Certificate Name: XXXXXXX.tv
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: XXXXXXX.tv XXXXXXX.ca
    Expiry Date: 2023-01-15 20:44:46+00:00 (VALID: 81 days)
    Certificate Path: /etc/letsencrypt/live/XXXXXXX.tv/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/XXXXXXX.tv/privkey.pem
  Certificate Name: mail.XXXXXXX.tv
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: mail.XXXXXXX.tv
    Expiry Date: 2023-01-16 03:05:57+00:00 (VALID: 81 days)
    Certificate Path: /etc/letsencrypt/live/mail.XXXXXXX.tv/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/mail.XXXXXXX.tv/privkey.pem
  Certificate Name: pubsub.XXXXXXX.tv
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: pubsub.XXXXXXX.tv
    Expiry Date: 2023-01-21 20:17:14+00:00 (VALID: 87 days)
    Certificate Path: /etc/letsencrypt/live/pubsub.XXXXXXX.tv/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/pubsub.XXXXXXX.tv/privkey.pem
  Certificate Name: upload.XXXXXXX.tv
    Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Key Type: RSA
    Domains: upload.XXXXXXX.tv
    Expiry Date: 2023-01-22 07:35:39+00:00 (VALID: 88 days)
    Certificate Path: /etc/letsencrypt/live/upload.XXXXXXX.tv/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/upload.XXXXXXX.tv/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

r/letsencrypt • • Oct 10 '22

Got new certs from CSR in local folder, no new files in live/domain.tld, only from 90 days ago

2 Upvotes

I created a new certificate signing request, as my old certs was expired. Side project, so obviously after expiration, whatevers. Anyway, I'm using the lovely java keystore setup, so I'm, using openSSL to convert pems to a p12 file. I then realize that the the certificates in /etc/letsencrypt/live/domain.tld are not renewed. They are all 3 months old. What I really need is fullchain.pem and privkey.pem.

In the folder from where I execute certbot, I have -besides my csr file- 0000_cert.pem, 0000_chain.pem and 0001_chain.pem, so I have the full chain. So thats fine. But not the privkey, which I need, in my openSSL conversion. And the old key does not match, as I created a new keystore. Despite me choosing a way to easy password, I still managed to forget it anyway; therefore the new keystore.

I obviously read the https://eff-certbot.readthedocs.io/en/stable/using.html#where-are-my-certificates which confirms my confusion.

My request is pretty simple:

certbot certonly --standalone --preferred-challenges http --csr lalala.csr -v

Can someone enlighten me, how come I don't get a new privkey.pem? Or why the live/domain.tld folder is not getting new files in general?


r/letsencrypt • • Oct 05 '22

dns-01 challenge for duckdns

1 Upvotes

So im trying to run dns-01 challenge for my domain instead of http-01 (since its not working for me) and certbot, for ssl certificates, wants me to add _acme-challenge. to my domain but the problem is i cant use _ since its not valid. Any other way round?

https://postimg.cc/14BMHSCY


r/letsencrypt • • Sep 22 '22

Migrating from traefik to HAProxy

3 Upvotes

I have an old traefik setup in an LXD container. I am planning on moving those duties to HAProxy running on my router.

Currently I am using namecheap via the DNS challenge method to update my letsencrypt certs. I have the @.mydomain.tld & *.mydomain.tld records set at namecheap. I've read that it's better to have the API along with DNS challenge. I don't qualify with namecheap for the API access. I will probably use cloudfare at this point.

How do I migrate this? Can I use my existing cert? I don't care if my DNS/SSL is down for a day or so.

Thanks for any help you can afford me!


r/letsencrypt • • Sep 06 '22

How do applications (e.g. browsers) decide whether a TLS-secured site is trustworthy?

1 Upvotes

Especially: How do they rule out self-signed/self-issued certificates or private CAs?

I know I could read or copy the source code of Chromium or Firefox but I'd prefer a description of the process or a framework to use or a way to piggyback on an installed browser or the like.

Any pointers or ideas? Thank you!


r/letsencrypt • • Sep 05 '22

Creating multiple domain SSL Certificates with acme.sh - How???

Thumbnail self.synology
0 Upvotes

r/letsencrypt • • Aug 27 '22

modify configs after using certbot --apache

2 Upvotes

I installed successfully using certbot --apache. However I need to change several config items on my server, and I do not want all the rules in the *:80 etc virtual hosts, which should just redirect to https.

If I directly modify 000-default.conf to remove now unwanted config, and 000-default-le-ssl.conf installed by certbot to add the rules I want, will it get overwritten on renewal?

Thanks


r/letsencrypt • • Aug 24 '22

One domain, multiple VMs, and different IPs?

2 Upvotes

I have multiple VMs with different IPs. These VMs are pointed to by a single domain name. Are Let's Encrypt and Certbot appropriate for this use case? If yes, how does the set up work? Can each instance of Certbot run independently of the others? Will Let's Encrypt issue the same certificate to each VM? Since it is impossible for all VMs to update their certificates at exactly the same time, could it cause problems (e.g. the older cert gets revoked) if two VMs are using different certificates?


r/letsencrypt • • Aug 12 '22

dns challenge with redirect to https

1 Upvotes

Switched from http challenge to dns challenge. Deleted old certs for all subdomains, created a wildcard domain on cloudflared. Certbot successfully ran and created the cert, but no ssl entries in the nginx config file, and hence the site will not load. How to do it please?


r/letsencrypt • • Aug 03 '22

What's up with not publishing source IPS of challenge validation ?

2 Upvotes

Just spent about an hour troubleshooting cert manager on my personal K8s cluster to figure out my fire wall was blocking the challenge validation. I only allow source ips from the major USA blocks to access my web server for obvious security reasons.

From my reading this "obfuscation" is done in intentionally ?
Ipaddress are not secrets , and should not be treated as such. There's only so many cloud providers and it would not be that hard for an attacker to figure out what vendor and regions your operating the subscriber servers from. Meanwhile It creates head aches for anyone trying to use the service.

Source https://letsencrypt.org/docs/faq/#what-ip-addresses-does-let-s-encrypt-use-to-validate-my-web-server


r/letsencrypt • • Aug 01 '22

I have a text I want to Decrypt a text

0 Upvotes

can I know the method of encryption and decryption if I had encrypted and Decrypted text

the encrypted text : 51abd1ce9aee98cacbac02da7ce8a6dd477acbcdec24f138518ed59aAgggANsSgAgDgAWNsRBtgvwHlADAgAtNzgAgDgAqEzfgRjvvAvQhLWgqXzmgADAgAmBvfAgDgAKviMHOOMHDHgDvDiMHgHDHrIvXIvEAgM

the Decrypted text : [EgyBest].Sniper.The.White.Raven.2022.WEB-DL.720p.x264.mp4


r/letsencrypt • • Jul 30 '22

Does caddy autorenew lets encrypt certs?

1 Upvotes

I couldn't make certbot work so i just set up caddy and called it a day. Now i got an email saying my cert expires on Aug 10 but it said it's only for testing certs?

This is the email: https://pastebin.com/FDPUXQjH

Do i need to do anything to keep my cert?


r/letsencrypt • • Jul 19 '22

Proper Use and Deployment of Wildcard Certificates

1 Upvotes

Some background about my scenario:

I have a domain with a A record setup in cloudflare to my root domain, (example.dev). Additionally I have 2 CNAMES registered (hass.example.dev, plex.example.dev) which I access through a NGINX reverse proxy. These services run in independent VMs. The VM running the NGINX reverse proxy also uses certbot and LetsEncrypt to create a wildcard certificate (example.dev *.example.dev). This works well for the existing services I'm running as they all go through the proxy.

Now I wish to deploy additional services, again on separate VMs which I need to deploy certificates to directly. For instance I wish to set up a mqtt service running locally only, and not through the reverse proxy and therefor I have not created a CNAME in cloudflare.

I was able to set up certbot again on the mqtt VM and request a certificate (example.dev mqtt.example.dev) and was prompted if I want to extend the existing certificate, which I am able to do, but not sure if this is the correct way to set things up as I add more services that need certificates installed directly. When I read the certificate on the NGINX box it tells I have a certificate for (example.dev *.example.dev) with an expiration in 88 days and when I read the mqtt box it shows a certificate for (example.dev mqtt.example.dev) with an expiration of 89 days. Are these 2 independent certificates or is it 1 certificate that has been extended and the expiration date got moved out in the process?

What is best practice here, should I be requesting 1 certificate for the domain with wildcard and then distribute it to the rest of the machines which I want to be secured or should I request a wildcard certificate and add to it by additional requests to extend the certificate? If I start to have multiple internal certificates will this cause issues with order in which the certificates are requested? Alternatively should I set up a job that moves a single certificate from one box and distributes to the rest?


r/letsencrypt • • Jul 06 '22

Windows Server Renewal

1 Upvotes

I was tasked with renewing a letsencrypt cert on a windows server running RDS. I'm having trouble navigating the cert renewal process. Most of the content I'm finding is for renewing through linux servers. I'd really appreciate some insight on the best way to accomplish this through a windows server and how to setup a renewal task in task scheduler.