4.8.0 • Published 2 months ago

node-opcua-crypto v4.8.0

Weekly downloads
5,025
License
MIT
Repository
github
Last release
2 months ago

node-opcua-crypto

NodeOPCUA Crypto is a powerful JavaScript module for handling security and cryptography for OPCUA. It's written in TypeScript and runs smoothly on Node.js and in the browser.

NPM download NPM version Build Status Code Climate Coverage Status install size FOSSA Status

Features

  • a comprehensive set of cryptographic functionalities.
  • supports both Node.js and browser environments.
  • compatible with TypeScript for robust, type-safe coding.
  • implements advanced security standards for OPCUA.

Getting Started

To use NodeOPCUA Crypto in your project, follow these steps:

Installation

npm install nodeopcua-crypto

Usage

import { generatePrivateKey, privateKeyToPEM, CertificatePurpose, createSelfSignedCertificate } from "./node-opcua-crypto.js";

async function demonstratePrivateKeyAndSelfSignedCertificateCreation() {

    // create the Private Key
    const privateKey = await generatePrivateKey();

    // convert the private key to a PEM format
    const { privPem } = await privateKeyToPEM(privateKey);

    console.log(privPem);

    // create a self-sign certificate
    const { cert } = await createSelfSignedCertificate({
        privateKey,
        notAfter: new Date(2025, 1, 1),
        notBefore: new Date(2019, 1, 1),
        subject: "CN=Test",
        dns: ["DNS1", "DNS2"],
        ip: ["192.168.1.1"],
        applicationUri: "urn:HOSTNAME:ServerDescription",
        purpose: CertificatePurpose.ForApplication,
    });
    console.log(cert);
}
demonstratePrivateKeyAndSelfSignedCertificateCreation();

Please refer to the examples directory for more specific use cases and comprehensive samples.

Support

For any inquiries or issues related to NodeOPCUA Crypto, you can contact us at contact@sterfive.com. Please note that priority support is available to NodeOPCUA Support Subscription members.

Getting professional support

NodeOPCUA PKI is developed and maintained by sterfive.com.

To get professional support, consider subscribing to the node-opcua membership community:

Professional Support

or contact sterfive for dedicated consulting and more advanced support.

Contributing

We appreciate contributions from the community. To contribute:

  • Fork the repository.
  • Create a new branch.
  • Commit your changes.
  • Submit a pull request.
  • Sign the CLA (Contributor Licence Agreement) form

For more detailed instructions, refer to the CONTRIBUTING.md file.

License

NodeOPCUA Crypto is MIT licensed. See the LICENSE file for full license details.

Copyright © 2023-2024 Sterfive.com.

Disclaimer

NodeOPCUA Crypto is provided as-is, and while we strive to ensure its quality and security, Sterfive.com cannot be held liable for any damage caused directly or indirectly by the usage of this module.

Please report any issues or vulnerabilities you find via the issue tracker.

Thank you for considering NodeOPCUA Crypto for your OPCUA cryptography needs. We look forward to seeing what you build with i

Supporting the development effort - Sponsors & Backers

If you like node-opcua-pki and if you are relying on it in one of your projects, please consider becoming a backer and sponsoring us, this will help us to maintain a high-quality stack and constant evolution of this module.

If your company would like to participate and influence the development of future versions of node-opcua please contact sterfive.

4.8.0

2 months ago

4.7.0

3 months ago

4.6.1

6 months ago

4.6.0

6 months ago

4.6.2

5 months ago

4.4.0

8 months ago

4.5.0

8 months ago

4.3.1

8 months ago

4.3.0

8 months ago

3.0.4

11 months ago

3.0.3

11 months ago

3.0.2

11 months ago

3.0.1

11 months ago

3.0.6

11 months ago

3.0.5

11 months ago

3.0.0

11 months ago

4.0.0

9 months ago

4.2.0

9 months ago

3.0.0-beta.1

12 months ago

3.0.0-beta.0

12 months ago

3.0.0-beta.3

12 months ago

3.0.0-beta.2

12 months ago

3.0.0-beta.4

11 months ago

3.1.0

10 months ago

4.0.0-beta.0

9 months ago

4.1.0

9 months ago

2.2.0

12 months ago

1.12.0

2 years ago

2.0.1

1 year ago

2.0.0

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.7.5

2 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.8

3 years ago

1.4.7

3 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago