[PATCH 01/16] pem: New certificate loading functions