General utilities to work with SSL in Java