Article 398 [source]

Spanish Criminal Code
English translation

Any public official or authority who issues a false certificate with little relevance to legal transactions shall be punished with a suspension of six months to two years. This provision shall not apply to certificates relating to Social Security and the Public Treasury.