Refactor SSL certificate generation

per request from Reichi:
https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/issues/52