I'm struggling to install a lets encrypt cert on IBM cloud to enable https access. I checked the cert using keytool and it includes all domains, and it seems valid.
Right now i have two problems:
- https is only enabled on the root domain -> https://example.com but not on any of my subdomains including https://www.example.com
- the intermediate cert isnt delivered, which means some browsers wont accept it.
I followed this tutorial https://www.ibm.com/blogs/bluemix/2014/09/ssl-certificates-bluemix-custom-domains/ unfortunately it's very old and most probably outdated.
Does anyone know how to do this?
Thanks
If you have the files ready, use the Bluemix CLI and upload them:
bx app domain-cert-add www.example.com -c cert.pem -k privkey.pem -i chain.pem
Then view your certificate:
bx app domain-cert www.example.com
Also, there is a bluemix-letsencrypt Python application that automates the whole process of doing the LetsEncrypt ACME challenge, issuing the certificate and key files (.pem), downloading them, and then uploading to bluemix. All done without taking down your live bluemix app because only /.well-known/acme-challenge/
paths are redirected to the python app, and not all /
root calls.
来源:https://stackoverflow.com/questions/49763014/how-to-install-a-letsencrypt-cert-on-ibm-cloud