client = PuppetDBClientFactory.newClient(prefs, getCommonModule());
else {
client = PuppetDBClientFactory.newClient(prefs, getCommonModule(), new AbstractModule() {
@Override
protected void configure() {
bind(SSLSocketFactory.class).toProvider(new AbstractSSLSocketFactoryProvider() {
@Override
protected Certificate getCACertificate(CertificateFactory factory) throws IOException, GeneralSecurityException {
return generateCaCertificate(factory);
}