@truschery/eimzo
v2.0.2
Published
A lightweight Node.js package for seamless integration with Eimzo, providing easy-to-use functionality for creating digital signatures and managing API keys.
Maintainers
Readme
Eimzo
A simple package for integration with the Eimzo API, providing the best experience for interacting with certificates, Pkcs7, and other plugins Eimzo
Features
The package has the ability to:
- Sending and processing API requests to Eimzo
- Connecting Eimzo API keys and checking the Eimzo application version
- Interaction with certificates implemented
- Throwing exceptions for convenient error handling
Plans:
- Implement unit testing of modules
- Implement a simple package configuration
- Add functionality for interacting with other Eimzo plugins
Installation
Install the package via npm:
npm install @truschery/eimzoDocumentation
To view the complete documentation for the package, you can visit Docs
Ensure you have Node.js version 14 or higher installed.
Example
To use @truschery/eimzo, import the package and initialize it with your Eimzo API credentials.
import Eimzo from '@truschery/eimzo'
// Initialize with API key
const eimzo = new Eimzo({
// ...configuration...
})
// You need to add API keys
eimzo.addApiKey('your-site', 'api-key')
// Get a list of certificates
const certificates = await eimzo.loadPfxCertificates()
// Interaction with the certificate
const certificate = certificates[0]
// Signing a string with a certificate
certificate.sign('string to sign', {
// options
detached: boolean
}): string
// Is the certificate expired?
certificate.isExpired(): bool
// Does this certificate belong to an individual?
certificate.isPhysical(): boolLicense
This project is licensed under the MIT License - see the LICENSE file for details.
