Added additional overload for certificate() method that lets applications provide a KeyStore. This lets apps load certificates from devices such as SmartCards that aren't accessible via URL and won't work with the existing certificate() methods.