patch b5d9701390240c147a7a994db9fc806da6fc9d54
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Dec 10 01:06:11 CET 2021
* irc: add relative user path support (e.g. ~/ on Unix) for TLS/SSL certificates and key
diff -rN -u old-irgramd/irgramd new-irgramd/irgramd
--- old-irgramd/irgramd 2024-11-22 22:12:28.527392662 +0100
+++ new-irgramd/irgramd 2024-11-22 22:12:28.527392662 +0100
@@ -25,7 +25,7 @@
self.logger.error('TLS configured but certificate not present')
exit(1)
tls_context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
- tls_context.load_cert_chain(settings['tls_cert'], settings['tls_key'])
+ tls_context.load_cert_chain(os.path.expanduser(settings['tls_cert']), os.path.expanduser(settings['tls_key']))
if not effective_port:
effective_port = 6697
self.logger.info('TLS configured')