Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не работает функция import() подписи из памяти #9

Open
nshdigt opened this issue Nov 21, 2016 · 1 comment
Labels

Comments

@nshdigt
Copy link
Collaborator

nshdigt commented Nov 21, 2016

Примерно такой тест:
console.log("Export");
var cms;
var buf;
cms = new trusted.cms.SignedData();
buf = cms.export(trusted.DataFormat.PEM);
assert.equal(buf.length !==0, true, "Wrong sign export");

console.log("Import");
var cms;
cms = new trusted.cms.SignedData();
cms.import(buf, trusted.DataFormat.PEM);
// console.log(cms.certificates().length);
// assert.equal(cms.signers().length, 1, "Wrong signers length");
// assert.equal(cms.certificates().length, 1, "Wrong certificates length");
// assert.equal(cms.isDetached(), false, "Detached");

@algv algv added the test label Nov 21, 2016
@algv algv closed this as completed in cb8cae9 Feb 2, 2017
algv added a commit that referenced this issue Feb 2, 2017
Reope #9
Work on winx64, fail on linux
@algv algv reopened this Feb 2, 2017
@algv
Copy link
Collaborator

algv commented Feb 2, 2017

Error: read Error read cms
../src/wrapper/cms/signed_data.cpp:127
read PEM_read_bio_CMS
../src/wrapper/cms/signed_data.cpp:93

140031159080832:error:0906D06C:PEM routines:PEM_read_bio:no start line:../deps/openssl/openssl/crypto/pem/pem_lib.c:701:Expecting: CMS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants