Hi,
I have set up the WebSocket Chat Demo to use wss, with an HTML5 export of the client. It all works fine.
I used a certificate from Let's Encrypt. I copied the .pem files and renamed them .crt and .key, and used "sudo chmod 644" to change the .key so it was readable (I'm on Ubuntu). I also changed the code to load the certificate from disk (rather than exporting the files with the project).
However, I'm confused - what happens when the certificate expires? My questions are:
(a) What will happen when the certificate expires? I assume wss will no longer work and chat will disconnect/fail to connect, is that correct?
(b) How can the Server check whether it needs to re-load the certificate?
(c) Godot can't read the directory the original files are in (/etc/letsencrypt/live/<DNS name>-0001), nor can it use .pem files (they must be .crt and .key) so do I have to set up a (system admin) cron job to copy the files, rename them and change the permission?
Or am I missing something simpler?
Thanks for any help.