I am trying to write an SSL client that sends mail using the javax.mail API. The problem I am having is that the server request that I use SSL, but the server is also config
Try this (answer to question 2):
System.setProperty("javax.net.ssl.trustStore", "/path/to/truststore");
You can also specify this as an additional command line parameter:
java -Djavax.net.ssl.trustStore=/path/to/truststore
On Fedora this could be the system wide java trust store in /etc/pki/java/cacerts