I'm going to try to keep this short. I'm trying to add a certificate chain to the deluge web UI, the subject certificate concatenated with a intermediate certificate, as is standard. I've successfully verified the separate files using the ``openssl verify" utility.
Code: Select all
$ openssl verify -verbose -CAfile root.cert.pem -untrusted intermediate.cert.pem deluge.cert.pem
deluge.cert.pem: OK
Code: Select all
openssl s_client -CAfile root.cert.pem -connect localhost:8112 -showcerts
Code: Select all
certificate = Certificate.loadPEM(cert.read()).original
Code: Select all
ctx.use_certificate_chain_file(configmanager.get_config_dir(delugeweb.cert))
I would fix this myself but I'm sure you that have greater experience with the code can do it much quicker and efficiently.