UNPKG

easy-ocsp

Version:

An easy-to-use OCSP client for Node.js

108 lines (63 loc) 2.15 kB
# Changelog All notable changes to this project will be documented in this file. ## [1.3.0] - 2025-08 ### Added - Allow passing a custom certificate for the OCSP response verification - Thanks @ArekDobosz - Export the `parseOCSPResponse` and `convertToPkijsCert` functions for advanced use cases - Thanks @Gldywn - All functions now accept raw certificates as `ArrayBuffer` ### Changed - Better error messages on HTTP request failures - The unit tests are now using a selfhosted OCSP responder - Use a new linter and formatter - Update dependencies - Update issue templates ## [1.2.2] - 2025-04 ### Changed - Update dependencies - Update Security Policy ## [1.2.1] - 2025-02 ### Changed - Update dependencies - Use Node.js 22 in CI - Migrate tests from Jest to Node.js Test Runner ## [1.2.0] - 2024-08 ### Breaking changes - The function `getCertURLs` is no longer async ❗ (was async with no need) ### Added - Export `downloadIssuerCert` function for usage outside of the module ### Changed - Use biome for linting and formatting instead of eslint and prettier - Improve code quality and test coverage - Update dependencies and GitHub Actions ## [1.1.0] - 2024-05 ### Added - Add `getRawOCSPResponse` function to get only the bytes of the OCSP response - New option `rawResponse` to get the raw OCSP response additionally to the parsed response ### Changed - Update dependencies ## [1.0.1] - 2024-01 ### Changed - Fix CommonJS import - Update dependencies ## [1.0.0] - 2024-01 ### Added - Automatically convert url to domain in `getCertStatusByDomain` - Add examples ### Changed - Throw error if the certificate is already expired - Update dependencies ## [0.3.0] - 2023-12 ### Added - Return the revocation reason when the certificate is revoked, if available - Check licenses of dependencies ### Changed - Add VSCode recommended extensions - Fix failing tests because of expired certificate - Update dependencies ## [0.2.0] - 2023-10 ### Added - Publish package via GitHub Actions ### Changed - Fixed downloading issuer cert when the data is pem encoded ## [0.1.0] - 2023-09 _This is the initial release._