simplify x509 material loading