twingly / twingly-search-api-java

:coffee: Twingly Blog Search API in Java
https://developer.twingly.com/resources/search/
3 stars 7 forks source link

No need to use keytool before running tests? #27

Open dentarg opened 8 years ago

dentarg commented 8 years ago

The README here, https://github.com/twingly/twingly-search-api-java#betamax, tells you to use keytool to modify Java's trust store, before running Betamax tests, but perhaps there's an alternative to that, that the tests could use, so the user doesn't have to care.

I saw this at https://github.com/shyiko/mysql-binlog-connector-java#using-ssl (haven't read anything more about this)

System.setProperty("javax.net.ssl.trustStore", "/path/to/truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword","truststore.password");
System.setProperty("javax.net.ssl.keyStore", "/path/to/keystore.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "keystore.password");