joshi82
November 13th, 2020, 01:04 AM
Greetings,
I am running Antmedia Server, which comes with Lets Encrypt support. I enabled that, everything is fine and fancy. Now IŽd like to reuse these certificates for the same machine for my Cockpit installation (which is on another port, certainly). I assume it should work, and if I make a symbolic link from the source files to the destination files it should work. However, I just do not know how/where, as I am not having too much experience with certs and all these different formats.
This is the command to use according a german blog post (https://blog.wydler.eu/2019/04/22/einrichten-von-cockpit-project-unter-ubuntu/) which looks promising:
acme.sh --issue --force --keylength 4096 --domain fqdn --standalone \--cert-file /etc/acme.sh/certs/fqdn.crt \
--key-file /etc/acme.sh/certs/fqdn.key \
--ca-file /etc/acme.sh/certs/fqdn.ca.crt \
--fullchain-file /etc/acme.sh/certs/fqdn.chain.pem \
--reloadcmd "cat /etc/acme.sh/certs/fqdn.chain.pem > /etc/cockpit/ws-certs.d/1-fqdn.cert \
cat /etc/acme.sh/certs/fqdn.key >> /etc/cockpit/ws-certs.d/1-fqdn.cert
The config file for my domain is /etc/letsencrypt/renewal/myserver.mydomain.com.conf and it contains:
version = 0.27.0archive_dir = /etc/letsencrypt/archive/myserver.mydomain.com
cert = /etc/letsencrypt/live/myserver.mydomain.com/cert.pem
privkey = /etc/letsencrypt/live/myserver.mydomain.com/privkey.pem
chain = /etc/letsencrypt/live/myserver.mydomain.com/chain.pem
fullchain = /etc/letsencrypt/live/myserver.mydomain.com/fullchain.pem
I assume if I use the files from myserver.mydomain.conf and use it with the command I should be ready to rumble, right? But which files do I have to use then? Or is there another way of achiving that?
Any help is highly appreciated.
Thanks
Joshi
I am running Antmedia Server, which comes with Lets Encrypt support. I enabled that, everything is fine and fancy. Now IŽd like to reuse these certificates for the same machine for my Cockpit installation (which is on another port, certainly). I assume it should work, and if I make a symbolic link from the source files to the destination files it should work. However, I just do not know how/where, as I am not having too much experience with certs and all these different formats.
This is the command to use according a german blog post (https://blog.wydler.eu/2019/04/22/einrichten-von-cockpit-project-unter-ubuntu/) which looks promising:
acme.sh --issue --force --keylength 4096 --domain fqdn --standalone \--cert-file /etc/acme.sh/certs/fqdn.crt \
--key-file /etc/acme.sh/certs/fqdn.key \
--ca-file /etc/acme.sh/certs/fqdn.ca.crt \
--fullchain-file /etc/acme.sh/certs/fqdn.chain.pem \
--reloadcmd "cat /etc/acme.sh/certs/fqdn.chain.pem > /etc/cockpit/ws-certs.d/1-fqdn.cert \
cat /etc/acme.sh/certs/fqdn.key >> /etc/cockpit/ws-certs.d/1-fqdn.cert
The config file for my domain is /etc/letsencrypt/renewal/myserver.mydomain.com.conf and it contains:
version = 0.27.0archive_dir = /etc/letsencrypt/archive/myserver.mydomain.com
cert = /etc/letsencrypt/live/myserver.mydomain.com/cert.pem
privkey = /etc/letsencrypt/live/myserver.mydomain.com/privkey.pem
chain = /etc/letsencrypt/live/myserver.mydomain.com/chain.pem
fullchain = /etc/letsencrypt/live/myserver.mydomain.com/fullchain.pem
I assume if I use the files from myserver.mydomain.conf and use it with the command I should be ready to rumble, right? But which files do I have to use then? Or is there another way of achiving that?
Any help is highly appreciated.
Thanks
Joshi