HORNETQ-408 - Revamp SSL

These changes were back-ported via JBPAPP-10668, therefore they need to be on the main EAP branch so that there are no regressions in future versions.