GitHub Pages SSL + SSL on server


I create website on GitHub Pages, and have letsencrypt SSL.
I need SSL on subdomain on my VPS.

If I generate a certificate on the server, will the GitHub certificate not be lost?

/etc/certbot-auto certonly --non-interactive --webroot --renew-by-default --agree-tos --expand --email --cert-path /etc/letsencrypt/live/ --chain-path /etc/letsencrypt/live/ --fullchain-path /etc/letsencrypt/live/ --key-path /etc/letsencrypt/live/ --cert-name -w /home/ -d -d -d


You should only request certificate for sites on your VPS, since you can't serve validation tokens (on your VPS) for the site you had on GitHub.

1 Like

Only for
/etc/certbot-auto certonly --non-interactive --webroot --renew-by-default --agree-tos --expand --email --cert-path /etc/letsencrypt/live/ --chain-path /etc/letsencrypt/live/ --fullchain-path /etc/letsencrypt/live/ --key-path /etc/letsencrypt/live/ --cert-name -w /home/ -d

If only is located in your server.

1 Like

Yes, on server. on GitHub Pages

Then this command is correct. (Just make sure each argument is correct)

Most of these options are probably not necessary and reflect defaults, or features that probably don't apply to your situation. You would probably also do OK with

/etc/certbot-auto certonly --non-interactive --webroot --agree-tos --email -w /home/ -d

for a session that must be noninteractive, or even just

/etc/certbot-auto certonly --webroot -w /home/ -d

if you're willing to have Certbot interact with you if absolutely necessary. I mostly suggest this because it's easier to read and understand.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.