Electrum SSL Cert Prorblem
You can try this 

openssl req -new -x509 -days 365 -nodes -out cert.chain -keyout key.pem


The cert itself is one CA added to the chain from the above command.
A .chain file is just a concatenation of signed ca certs