Modify CerfiticateGenerator to get a default algorithm