Roman Catechism 21.78

Chapter 21 — Part II: The Sacraments — Holy Orders

Section 78. The same must be said of the illegitimate and of all those not born in lawful wedlock. It is only right that those who are dedicated to the divine service should have nothing in them which could expose them to the well-deserved derision or contempt of others.