import * as x509js from 'x509.js'; x509js.parseCert('certSting'); x509js.parseKey('keyString'); x509js.info();