support PEM-encoded certificates stored in SQL databases