I have a local stack running on my Ubuntu machine. I could never get certificates to work, so I could still use it, just not with https and also not with LBS.
Did you remember to type
sudo chown 886:886 ./cert.pem ./key.pem
after creating your certificates?