1

I have a website builder where users can add their domain name, and I need some direction on how to get it set up with HTTPS, I presume through LetsEncrypt.

Example:

I want to automatically generate an SSL certificate when a user adds their domain name.

The problem I have is trying to set up a LetsEncrypt certificate for each custom domain name. How do I save the certificate (presumably in the database), but call it as soon as the server gets the request? Surely it would need a valid HTTPS before it gets to the Laravel routing?

A couple of things to know on how pages get served:

  1. It's a Laravel application running on Nginx via Route53.

  2. I guess the user sites are virtual. The route listens to the domain and slug, then serves up content accordingly. Each user profile is not a separate Ngnix site.

  3. The user points a CNAME www.whatever.com to domain.vibecast.com which points to the IP address of the server.

  4. The route set up: {domain}/{slug1}/{slug2}. Call the user from {domain} and display pages from {slug}.

I don't even know where to begin on how to implement this?

  • "but call it as soon as the server gets the request?" This has to be configured in the webserver you are using, that is Nginx. – Patrick Mevzek Dec 21 '18 at 14:52
  • Yes, I thought that would be the case, but looking for suggestions on how to do it, or what to search for? – Jack Barham Dec 21 '18 at 14:56
  • 1
    You may get more exposure/expertise for this question on Server Fault if it fits their guidelines. Also, really neat project by the way. – Maximillian Laumeister Dec 21 '18 at 18:02
  • Thanks, I'll give that a try. And thanks for the comment :) – Jack Barham Dec 21 '18 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.