parsing certificate, thanks for @digitalbazaar/forge