Fix WS certificate generator for java 8