Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various SSL setup fixes #316

Merged
merged 2 commits into from Jul 10, 2017
Merged

Various SSL setup fixes #316

merged 2 commits into from Jul 10, 2017

Conversation

acburdine
Copy link
Member

@acburdine acburdine commented Jul 8, 2017

closes #309

  • if a user deletes their instance and recreates it with the same domain, then acme will fail to generate the certificate because it already exists & is not due for renewal. We work around this issue by looking for the error and copying the right keys if it already exists

closes #302

  • checks if ssl has already been setup, if it has then skips
  • better cleanup/handling of well-known config block

@acburdine acburdine changed the title fix(ssl): copy acme certificates from home location if they exist Various SSL setup fixes Jul 8, 2017
closes TryGhost#309
- if a user deletes their instance and recreates it with the same domain, then acme will fail to generate the certificate because it already exists & is not due for renewal. We work around this issue by looking for the error and copying the right keys if it already exists
return;
// Certificate already exists
if (renew) {
instance.ui.log('Certificate not due for renewal yet, skipping', 'yellow');

This comment was marked as abuse.

This comment was marked as abuse.

closes TryGhost#302
- checks if ssl has already been setup, if it has then skips
- better cleanup/handling of well-known config block
@coveralls
Copy link

Coverage Status

Coverage remained the same at 56.231% when pulling e65a82e on acburdine:fix/ssl into a4da2a4 on TryGhost:master.

@TryGhost TryGhost deleted a comment from coveralls Jul 10, 2017
@acburdine
Copy link
Member Author

Have tested, these changes work 👍

@acburdine acburdine merged commit 5352793 into TryGhost:master Jul 10, 2017
@acburdine acburdine deleted the fix/ssl branch July 10, 2017 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants