Show / Hide Table of Contents
Edit on GitHub

Using PKI Express on Node.js

This article describes how to use PKI Express on Node.js

Sample project

The sample project shows the usage of PKI Express together with the Web PKI browser component on a NodeJS project. It is hosted on GitHub:

https://github.com/LacunaSoftware/PkiSuiteSamples/tree/master/nodejs/expressmvc

Running the project

  1. Install PKI Express
  2. Download the project or clone the repository
  3. In a command prompt, navigate to the folder NodeJS/expressMVC and run the command npm install to download the dependencies
  4. Run the web application: npm start
  5. Access the URL: http://localhost:3000

If you use Yarn, you can use yarn install or yarn to download the dependencies and yarn start to run the application.

NPM package

In order to use PKI Express on Node.js, you must includ the NPM package pki-express

To add it to your project, add the line below to your package.json file:

{
    "dependencies": {
        "pki-express": "1.10.2"
    }
}

After that, do a npm install to download the package and its dependencies.

The package is open-source, hosted on GitHub. Feel free to fork it if you need to make any customizations, and even submit an pull request.

Back to top Copyright © 2015-2020 Lacuna Software