Skip to content

Instantly share code, notes, and snippets.

@tansaku
Created July 25, 2017 07:40
Show Gist options
  • Select an option

  • Save tansaku/224d0c4358d063b7e705576883b9a482 to your computer and use it in GitHub Desktop.

Select an option

Save tansaku/224d0c4358d063b7e705576883b9a482 to your computer and use it in GitHub Desktop.
letsencrypt renewal for asyncvoter
[tansaku@Samuels-MBP:~/Documents/Github/heroku/async-voter-production (master)]$
→ ssh dokku@agileventures.eastus.cloudapp.azure.com letsencrypt asyncvoter-staging
=====> Let's Encrypt asyncvoter-staging
-----> Updating letsencrypt docker image...
latest: Pulling from dokkupaas/letsencrypt-simp_le
Digest: sha256:398e9173f8e9662df66cb6d0dfa6c6ac07f1e3d65b7994177d487d36eb9b10be
Status: Image is up to date for dokkupaas/letsencrypt-simp_le:latest
done updating
-----> Enabling ACME proxy for asyncvoter-staging...
-----> Getting letsencrypt certificate for asyncvoter-staging...
- Domain 'staging.asyncvoter.agileventures.org'
darkhttpd/1.12, copyright (c) 2003-2016 Emil Mikulic.
listening on: http://0.0.0.0:80/
2017-07-25 07:38:05,229:INFO:__main__:1305: staging.asyncvoter.agileventures.org was successfully self-verified
2017-07-25 07:38:05,329:INFO:__main__:1313: Generating new certificate private key
2017-07-25 07:38:10,247:INFO:__main__:391: Saving fullchain.pem
2017-07-25 07:38:10,247:INFO:__main__:391: Saving cert.pem
2017-07-25 07:38:10,248:INFO:__main__:391: Saving key.pem
-----> Certificate retrieved successfully.
-----> Installing let's encrypt certificates
-----> Unsetting asyncvoter-staging
-----> Unsetting DOKKU_NGINX_PORT
-----> Unsetting asyncvoter-staging
-----> Unsetting DOKKU_NGINX_SSL_PORT
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:80:5000
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:80:5000 https:443:5000
-----> Setting config vars
DOKKU_NGINX_PORT: 80
-----> Setting config vars
DOKKU_NGINX_SSL_PORT: 443
-----> Configuring staging.asyncvoter.agileventures.org...(using built-in template)
-----> Creating https nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Configuring staging.asyncvoter.agileventures.org...(using built-in template)
-----> Creating https nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Disabling ACME proxy for asyncvoter-staging...
done
[tansaku@Samuels-MBP:~/Documents/Github/heroku/async-voter-production (master)]$
→ https://github.com/dokku/dokku-letsencrypt#commands
-bash: https://github.com/dokku/dokku-letsencrypt#commands: No such file or directory
[tansaku@Samuels-MBP:~/Documents/Github/heroku/async-voter-production (master)]$
→ ssh dokku@agileventures.eastus.cloudapp.azure.com letsencrypt:auto-renew asyncvoter-staging
asyncvoter-staging still has 59d, 22h, 58m, 37s days left before renewal
[tansaku@Samuels-MBP:~/Documents/Github/heroku/async-voter-production (master)]$
→ ssh dokku@agileventures.eastus.cloudapp.azure.com letsencrypt:auto-renew asyncvoter-production
=====> Auto-renew asyncvoter-production...
=====> Let's Encrypt asyncvoter-production
-----> Updating letsencrypt docker image...
latest: Pulling from dokkupaas/letsencrypt-simp_le
Digest: sha256:398e9173f8e9662df66cb6d0dfa6c6ac07f1e3d65b7994177d487d36eb9b10be
Status: Image is up to date for dokkupaas/letsencrypt-simp_le:latest
done updating
-----> Enabling ACME proxy for asyncvoter-production...
-----> Getting letsencrypt certificate for asyncvoter-production...
- Domain 'production.asyncvoter.agileventures.org'
darkhttpd/1.12, copyright (c) 2003-2016 Emil Mikulic.
listening on: http://0.0.0.0:80/
2017-07-25 07:39:47,383:INFO:__main__:1305: production.asyncvoter.agileventures.org was successfully self-verified
2017-07-25 07:39:47,471:INFO:__main__:1313: Generating new certificate private key
2017-07-25 07:39:50,057:INFO:__main__:391: Saving fullchain.pem
2017-07-25 07:39:50,057:INFO:__main__:391: Saving cert.pem
2017-07-25 07:39:50,057:INFO:__main__:391: Saving key.pem
-----> Certificate retrieved successfully.
-----> Installing let's encrypt certificates
-----> Unsetting asyncvoter-production
-----> Unsetting DOKKU_NGINX_PORT
-----> Unsetting asyncvoter-production
-----> Unsetting DOKKU_NGINX_SSL_PORT
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:80:5000
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:80:5000 https:443:5000
-----> Setting config vars
DOKKU_NGINX_PORT: 80
-----> Setting config vars
DOKKU_NGINX_SSL_PORT: 443
-----> Configuring production.asyncvoter.agileventures.org...(using built-in template)
-----> Creating https nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Configuring production.asyncvoter.agileventures.org...(using built-in template)
-----> Creating https nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Disabling ACME proxy for asyncvoter-production...
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment