question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can setting up SSL really be as simple as adding

ssl: {
    autogenerate: {
      email: 'email.address@domain.com',
      domains: 'website.com,www.website.com'
    }
  }

To the meteor object in the mup.js file?

I tried adding this and re-running the mup deploy and mup setup commands. Everything deploys successfully, however my domain is still unsecure.

Are there any more steps I need to take to get this to work? Or can someone help me with troubleshooting?

While running mup setup and deploy I don’t see any messages relating to SSL. I’m also currently on version 1.2.5, I guess I should try this on 1.2.6 but it’s my understanding that this should still work. Here is what I’m seeing.

mup setup

Started TaskList: Setup Docker [boldvue.com] - Setup Docker [boldvue.com] - Setup Docker: SUCCESS

Started TaskList: Setup Meteor [boldvue.com] - Setup Environment [boldvue.com] - Setup Environment: SUCCESS

Started TaskList: Setup Mongo [boldvue.com] - Setup Environment [boldvue.com] - Setup Environment: SUCCESS [boldvue.com] - Copying mongodb.conf [boldvue.com] - Copying mongodb.conf: SUCCESS

Started TaskList: Start Mongo [boldvue.com] - Start Mongo [boldvue.com] - Start Mongo: SUCCESS

And

mup deploy

Your app is using the “force-ssl” package, but ssl is not setup in your mup config. This can cause unexpected redirects. Building App Bundle Locally

Started TaskList: Pushing Meteor App [boldvue.com] - Pushing Meteor App Bundle to The Server [boldvue.com] - Pushing Meteor App Bundle to The Server: SUCCESS

Started TaskList: Configuring App [boldvue.com] - Pushing the Startup Script [boldvue.com] - Pushing the Startup Script: SUCCESS [boldvue.com] - Sending Environment Variables [boldvue.com] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor [boldvue.com] - Start Meteor [boldvue.com] - Start Meteor: SUCCESS [boldvue.com] - Verifying Deployment [boldvue.com] - Verifying Deployment: SUCCESS

Thank you, getting the SSL to work and auto-renew is huge. It’s always been a pain to deal with in the past because I only do it once a year and so it’s a struggle to plow through it every time.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
chrissanderscommented, May 2, 2017

I was able to get this working, although I’m not sure exactly what fixed it. Things I did were:

  1. Change the ROOT_URL from http to https in mup.js
  2. Only list one subdomain in the ssl section of mup.js
  3. Run mup setup from mup/prod
  4. Call ./bin/deploy prod

One of those things or a combination of them got me going.

1reaction
kulttuuricommented, May 27, 2017

Nevermind, got this one sorted out! I was trying to sign azure test server address, looked up the docker logs for the nginx meteor server instance and it did not want to grant that server an certificate. Added DNS entry to my own server subdomain address and it worked nicely.

Just heads up that with Azure’s Ubuntu 14.04 server the letsencrypt did not work at all, but with 16.04 it worked out of the box. It also needs few minutes for the certificate to be signed. Good way to check for certificate signing errors is to SSH into the server computer and first run sudo docker ps, get container ID of jrcs/letsencrypt-nginx-proxy-companion:latest and run `sudo docker logs companionContainerID’. That’s where I found the error at.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Auto Generate SSL Certificates On The Fly - Hyperping
How To Auto Generate SSL Certificates On The Fly ... Customers can generate hosted status pages that display the status such as availability, ......
Read more >
Creating a Self-Signed SSL Certificate - Heroku Dev Center
Create a self-signed SSL certificate as a quick and inexpensive way to add SSL encryption to non-production ... Generate SSL certificate.
Read more >
How to Create Your Own SSL Certificate Authority for Local ...
The way to get around this is to generate our own root certificate and private key. We then add the root certificate to...
Read more >
How to generate a self-signed SSL certificate using OpenSSL?
It's easy to create a self-signed certificate. You just use the openssl req command. It can be tricky to create one that can...
Read more >
How to automatically generate SSL certificates? - nginx
I want to generate SSL certificates for these subdomains configured on my Nginx. How could I automate the generation of SSL certificates?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found