I have utilized the latest duckdns / let’s encrypt fuctionality to enable SSL on my hassio AIO. Howerver, now TRAVIS CI always fails because it can’t find the ssl cert. I was having the same problem on my local build but I got that resolved. Do I need to put the http portion of the configuration.yaml lower in the file?
Fixed:
Just in case anyone else has the same issue, I just had to add two dummy files to my project. One for a fake cert and one for a fake key. both files are just random strings in a file. I updated the Travis secrets to point to those files. Worked like a charm
Where did you store those files? I have the same issue right now
The files are in the root directory. Same spot as where you put your Travis yaml and Travis secrets files
Can I see an example
nevermind figured it out
Thanks, didn’t work on my config with hassbian
for me it did
Yes but you are on hassio and I am on hassbian so there is probably different way to set the up the SSL
I am running hassbian if you want I am @ikifar#7246 on discord you can message me on the server and I can send you my files when I get home
Thanks @ikifar2015 I have sent a request on discord! Its midnight here ang I am going to sleep but check in with you in the morning!
I’ll just update this for anyone else who gets the same problem.
Step 1:
in your configuraiton.yaml
edit cert and key to look like this:
ssl_certificate: !secret ssl_certificate
ssl_key: !secret ssl_key
Step 2:
Then in your secrets.yaml
add the following:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
Step 3:
And in travis_secrets.yaml
ssl_certificate: fake_key.pem
ssl_key: fake_key.pem
Step 4
And at last create a file in your config dir. named fake_key.pem
containing your favorite biscuit recipe
This did the trick for me, thank you!