-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Detect ssl setup with ip address #301
Comments
What needs to happen here is before ssl generation even is tried, the URL needs to be checked and generation skipped if it's an IP rather than a domain name. |
Adding this from the discussion in slack. If a user sets up ssl but previously entered non secure protocol as their url we should update the url in config. Conversely if the user added secure protocol then skips ssl we could downgrade the url to http. The only question is whether or not we don't to do the latter as it is possible a user can setup their own certificate? @ErisDS ? |
We are combining 2 different issues here:
From https://community.letsencrypt.org/t/certificate-for-public-ip-without-domain-name/6082/5:
Is it okay to open a new issue for that, @cobbspur? Ghost supports multiple modes when SSL is available (force SSL for everything, force SSL for admin only, ...) and I'm not sure if we will pick the correct mode automatically? |
closes TryGhost#301 - detect if the url is an IP address and skip if it is
closes #301 - detect if the url is an IP address and skip if it is
If you install Ghost and you configure an ip address instead of a domain, you will get an error when running
ghost setup ssl
:Ghost-CLI log contains:
We have to improve the error detection here. Simply checking if the url is an ip address would be helpful, because the error here looks not very clear.
e.g. touch: cannot touch '/home/kate/.acme.sh/account.conf': No such file or directory
SSL won't work with ip addresses.
The text was updated successfully, but these errors were encountered: