Hi,

Why not pass the path to the certificate as a parameter of your application ?

That way, you can configure it in the startup script of your server and just 
need to restart/reload it when the time comes to update the certificate.

Another possibility is to use a configuration file in which you point your 
application to where the certificates are.

Hope it helps

Best regards
Samuel

> On 26 Feb 2024, at 16:11, Alexander Carôt via Interest 
> <interest@qt-project.org> wrote:
> 
> Hi all,
> 
> I have a secure websocket server based on the Qt example:
> 
> https://doc.qt.io/qt-6/qtwebsockets-sslechoserver-example.html
> 
> It requires a certificate and a key which are compiled into the server and it 
> functions well.
> 
> However, whenever the certificate expires (such as Let’s encrypt after 90 
> days) I need to recompile the server with the renewed certificate.
> 
> In order to avoid this process I wonder if it is possible to somehow 
> externally point to the the new certificates without integration at 
> compilation time.
> 
> Thanks for any hint,
> best
> 
> Alex
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to