I have my hosting (Buyshared) and website all setup for SSL using the official Let’s Encrypt app. The SSL issued and installed for my domain (skynode.link) as a wildcard certificate using dns verification.
Now I use my website to connect to my application server which needs the crt and key files to work. The server is set to retrieve those files from a certain folder located in the hosting public_html folder.
The problem is how can I find the currently installed certificate (crt and key) data (- - - BEGIN …) using cli commands so that I can make a script to copy the data and update the designated file which my external reads every week and updates it installed certificates. This script will be running as a crib job so that every time let’s Encrypt app reissues my website certificates, the new crt and key file data is automatically copied and pasted in the secured folder where only my external server can access and retrieve it.
Umm, you should absolutely not put your private key file in public_html. This file needs to remain secret. If it is exposed, then the cerfiticate must be revoked.
I think there is likely a bettor way to handle this, if you could give us some more background on this application server and why it can’t obtain its own certificate.
hi currently i use this script to retrieve the files and upload it to the other server. but this only gets the latest modified files from the SSL/certs or SSL/keys file which leaves the possibility to get mismatched files
well the external server is a mikrotik cloud host router. so what I do is that i have DNS entries to my hosting pointing to this Mikrotik Server. example cloud,skynode.link:4528 and this mikrotik must use the ssl for the domain cloud.skynode.link (which in my case is *.skynode.link) so since lets encrypt app issues this ssl, i need to extract the crt and key file (the latest one) and put it in a secure folder may b “~/chr/lets_encrypt” with a constant name like “skynode.crt and skynode.key” and then Mikrotik server can connect to that folder using FTP and retrieve those files to install in iteself.
Thank you for your effort. I am a complete noob in terms of website and hosting related issue. I am not sure wether I made my problem clear or I didn’t understood what you explained
I am using the official Let’s Encrypt app for cpanel to generate and install the ssl for my website. Now I need to retrieve the crt and key file which was generated by the app to store in a constant directory under a constant file name. This this two constants should automatically update with the latest crt and key files whenever the Let’s Encrypt app reissues the ssl
Ich denke sie komme aus Deutschland, Wir können auch über Telefon Kontakt mit Ihnen aufnehmen. Sorry, mein Deutsch ist schlecht. Ich lerne die Sprache neben meinem Master-Abschluss