Nuked: Probably Microwaved

    xsm_pemutils

    1.0.3 • Public • Published

    pemutils

    Build Status

    Converts .pfx to .pem files (key, cert or both) with simple OpenSSL bindings.

    var pemutils = require('pemutils');
     
    pemutils.fromPfx({
        path: '/path/to/my/cert.pfx',
        password: 'myPass'
    }, function(err, results) {
        if(err) {
            throw err;
        }
     
        console.log(JSON.stringify(results, null, 4));
    });

    Will output:

    {
        "attributes": {
            "version": 2,
            "subject": {
                "countryName": "",
                "organizationName": "",
                "stateOrProvinceName": "",
                "localityName": "",
                "organizationalUnitName": "",
                "commonName": ""
            },
            "issuer": {
                "countryName": "",
                "organizationName": "",
                "organizationalUnitName": "",
                "commonName": ""
            },
            "serial": "",
            "notBefore": "",
            "notAfter": "",
            "signatureAlgorithm": "",
            "fingerPrint": "",
            "altNames": [],
            "extensions": {
                "subjectAlternativeName": "",
                "basicConstraints": "",
                "authorityKeyIdentifier": "",
                "keyUsage": "",
                "certificatePolicies": "",
                "cRLDistributionPoints": "",
                "extendedKeyUsage": "",
                "authorityInformationAccess": ""
            }
        },
        "certificate": "",
        "key": ""
    }

    Install

    npm i xsm_pemutils

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    20.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • ashertaqn