check if you have enabled Fortify log
\Users<user>.fortify\config.json
if no
echo {"logging":true} > \Users\\.fortify\config.json
| const pkcs11 = require("pkcs11js"); | |
| const ffi = require("ffi"); | |
| const ref = require("ref"); | |
| const ArrayType = require('ref-array') | |
| const StructType = require("ref-struct"); | |
| const KEYPAIR_ID = Buffer.from("GOST keypair"); | |
| // PKCS11 types | |
| const CK_BYTE = ref.types.byte; |
| <!DOCTYPE html> | |
| <!-- Data signing/verify --> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Example #5</title> | |
| <script src="https://peculiarventures.github.io/pv-webcrypto-tests/src/promise.js"></script> |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Test all files", | |
| "type": "node", | |
| "request": "launch", | |
| "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | |
| "args": [ | |
| "--no-timeouts", |
| #include <iostream> | |
| #include <CoreFoundation/CoreFoundation.h> | |
| #include <Security/Security.h> | |
| #define SUCCESS printf("%s: OK\n", __FUNCTION__) | |
| static CFStringRef kSecAttrLabelTestApplication = CFSTR("test-application"); | |
| template<typename T> | |
| class CFRef { |
| const fs = require("fs"); | |
| const WebCrypto = require("node-webcrypto-ossl"); | |
| const xadesjs = require("xadesjs"); | |
| const { XMLSerializer } = require("xmldom-alpha"); | |
| const crypto = new WebCrypto(); | |
| xadesjs.Application.setEngine("OpenSSL", crypto); | |
| function preparePem(pem) { | |
| return pem |