PROTON-517: fixed ssl sniffing and ssl transport implementation; added certificate API to java Messenger