fixed error while adding certificate with whitespace