Skip to content

How to setEngine for OpenSSL without node-webcrypto-ossl #70

@Cyberlane

Description

@Cyberlane

The README.md for this project still heavily refers to the node-webcrypto-ossl package, however it is deprecated in favour of the native node:crypto/webcrypto package.

So I am curious how I would change my code in order to support this?

Previously I would do this:

import WebCrypto from 'node-webcrypto-ossl';
import * as XmlDSigJs from 'xmldsigjs';

XmlDSigJs.Application.setEngine('OpenSSL', new WebCrypto() as unknown as Crypto);

Or is this no longer required after a certain version of xmldsigjs ? It's not very clear in the documentation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions