Move dhkey gen to the ssl class