I was following the instructions for making self signed certs and that all went fine, made the /tmp/Creds directory and copied the keys over to that /tmp/Creds/ location.
When I then went to build and run the server it wouldn’t make a connection. The project built fine, but exited with
[ERROR] [Kitura.swift:139 start()] Error listening on port 8080: Certificate chain doesn't exist at specified path.. Use server.failed(callback:) to handle
So I tried to find where the certificates that were actually generated. I finally ended up finding them in a private folder located in the root HD. So basically it was in root/private/tmp/Certs location not root/tmp/Certs.
I’m pretty sure this is why my Server App with Xcode is not working properly.
My question is…if I change the file path in
certificateKeyFile it should work again locally with Xcode, but is there a way to check to see if the docker version is also not using the right file path? The errors I’m getting there are
[ERROR] [IncomingHTTPSocketProcessor.swift:278 parse] Failed to parse a request. Parsed fewer bytes than were passed to the HTTP parser I’m not sure if I have to change the docker file to the other file path as well. Or maybe there is a config setting with the docker cli I’m not aware of.
Any tips would be appreciated.