refactored ssl cert handling to be configurable in appserver.xml