Import ssl certificates

Also ensures output is stored in proper tls directory

Closes #518