serverpilot-letsencrypt
serverpilot-letsencrypt copied to clipboard
Steps to adding new domains
Let's say I register example.com
and I want to add example.org
to the same app. What are the step required to doing that?
Good question. I can add this to the script functionality.
For now, you have to remove the <appname>.ssl.conf
file and re-run the script again.
That would be sweet!
I literally had a client discussing "new subdomains" with me yesterday... this feature would help a lot.
I deleted my <appname>.ssl.conf
and rerun the script and added my other top domain urls example.com
, example.net
, example.info
.
But when trying to surf to the the domains I added I get an SSL error.
This server could not prove that it is example.net; its security certificate is from example.com.
I'm also having this issue. My initial install (a few weeks ago) worked properly, but trying to create any additional certs end up causing an SSL error issue that can't be resolved until I delete the ssl.conf file I just created. This happens for all domains and subdomains >= 1.
Does not appear to throw any errors in creation however. Could be a server configuration issue?
It could be a security risk running two different sites on the same app If you seriously need another domain just copy paste the PHP code into the new app and make them use the same database.
@miwilc Which "PHP code" and "database" are you referring to? This Github repo is for a simple shell script.
Please elaborate on the perceived security risk... I don't see one.
@lindseydiloreto I was mentioning that you can create a new app on serverpilot for your new domain/subdomain and copy all the files of the old app via SFTP/SSH to the new one, this should include the config files to use the MySQL database from the old app.
Just wondering if this Gist would provide some help in getting this issue solved? I no server guru, so could be way off, but it seems to enable easy sub-domain additions.