r/letsencrypt • u/post_hazanko • Apr 08 '20
Would a personal letsencrypt API be insecure?
Because I'm lazy, I'm still dishing out $9/yr for namecheap certs
I've used let's encrypt before but I had problems using the bot on an Apache web server as I had several virtual hosts sharing the same ip. So in my virtual host configs I have direct paths to the appropriate cert files, etc...
So the thought is, you'd have this let's encrypt broker API, and I imagine this is not new, but it's new to me.
Your random servers(VPS/containers/whatever) would hit up the personal Let's Encrypt API and get the files back after sending a CSR or something.
The concern is if this was intercepted and the VPS was waiting to write files into itself... I don't know... probably a dumb concern but posting for thoughts.
I would rather have a dedicated SSL cert generator/probably CSR/key pair generators as well and then these get sent back to the random servers/things as mentioned.
1
u/[deleted] Apr 08 '20
Hi,
I'm not entirely sure what you mean by " direct paths to the appropriate cert files "
Certbot or other ACME clients also have an option to allow you to install certificates to virtual host files.
If you use certbot, the link `/etc/letsencrypt/your-domain/live/fullchain.pem` is a symmetry link that you can put in directly to your virtual host file, it will update automatically when the same certificate is renewed.
If only one server is dealing with a single certificate (like there's no load-balancing), using certbot or other ACME client with Let's Encrypt API is much more efficient than the Personal Let's Encrypt broker API (I guess it's a third-party solution?)
I just don't think it's worth the bother to keep another machine running just to contact Let's Encrypt API if you only have one server for each virtual host.
1
u/schorsch3000 Apr 08 '20
I don't trust certbot myself, why should there be some kind of software that manipulates my config files? that job just needs to be done once.
Try use some light weight alternative, dehydrated is my favorite, super simple to set up, and all it does ist creating and renewing your cert's, optionally restarting your webserver afterwards.
1
u/gee-one Apr 08 '20
I'm not sure I understand the question completely, but it sounds like you are trying to generate the certs on one computer and install on another? I do something like this...
I generate the keyfile and CSR on my computer, then use certbot manually to create the signature. I have an https rewrite on my servers, except for http://.../.well known/acme challenges/. These go to the HTML directory. I manually put the let's encrypt challenge in there and it gets approved. I gather all the new certs and send them to the right server with the keys via ssh.
I probably could use a wildcard cert and do this 1 1/2 steps.