Socket
Socket
Sign inDemoInstall

pfx-load

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pfx-load

Validate your pfx certificate in the easier way possible


Version published
Weekly downloads
92
decreased by-37.84%
Maintainers
1
Install size
1.63 MB
Created
Weekly downloads
 

Readme

Source

Pfx Load

Validate your pfx certificate in the easier way possible

How to call?

You just need to to the following:

  const obj = pfxLoad('./path_to_pfx_file', 'some password')

Signature

pfxLoad(certPath: string, passphrase: string, options: PfxOptions): PfxLoad;

  • certpath: Path of .pfx file.
  • passphrase: Password to read the certficate
  • options:
    • showCerts: Default: false, Show or not an Array of certificates
    • showError: Default: true, show or not the error parameter

Interface

The PfxLoad use the following interfaces:

PfxLoad {
  isPasswordOrPfxInvalid?: boolean;
  isPfxOutdated?: boolean;
  willWork?: boolean;
  error?: Error | null
  validCerts?: Array<Cert>;
}

PfxOptions {
  showCerts?: boolean;
  showError?: boolean;
}

I hope you can make a good use of this library. If you'd like to add or complain about something, please create an Issue in our github. Or enter in our community

Keywords

FAQs

Last updated on 08 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc