Add utils for generating keystores/truststores

Use these to get the keystore and truststore needed to set up an
SSLContext