Add a keystore for SSL connections

This depends on #136 and #144.