open-eid / chrome-token-signing

DEPRECATED Chrome and Firefox extension for signing with your eID on the web
https://github.com/open-eid/chrome-token-signing/wiki
GNU Lesser General Public License v2.1
206 stars 75 forks source link

Problem with A3 certificate #58

Closed AyrtonRicardo closed 7 years ago

AyrtonRicardo commented 7 years ago

Hello everyone,

I'm using a A3 certificate, but happens techinical_error after getCertificate with the message Incompatible key. I found this CngCapiSigner.cpp, but I don't know how to debug or test that problem, can anyone helps me?

OS: Windows 10 Type of certificate: Token(pen drive) A3

What library is this CryptAcquireCertificatePrivateKey ?

metsma commented 7 years ago

https://msdn.microsoft.com/en-us/library/windows/desktop/aa379885%28v=vs.85%29.aspx

AyrtonRicardo commented 7 years ago

Thanks for your fast feedback.

I'm seeing if it's some incompatibilities with brazilian certificates/tokens or just a problem with the user before close this issue.

metsma commented 7 years ago

Use certutil -v -scinfo for windows diagnostics

AyrtonRicardo commented 7 years ago

I'm debugging what's the problem, and I used the command certutil -v -scinfo in a certificate on my machine and I'm comparing with the certificate on the client. I read each single line and I'm not able to find any difference between both :cry: .

The message of the error is Incompatible key, exactly at CngCapiSigner.cpp .

is there any known issue using certificates of https://support.globalsign.com/customer/en/portal/articles/1727343-download-and-install-ev-code-signing-certificate ?

I've tested with more then 7 differents companies but I'm not able to reproduce the error, only with client and this company the error appears.

I'm using the version 1.0.5 .

AyrtonRicardo commented 7 years ago

I saw my error while debugging this issue, probably fixed in release 1.0.6. I'll test it and I'll be sure.

AyrtonRicardo commented 7 years ago

@metsma thanks for you help. My problem was fixed on Release 1.0.6.

Thanks a lot and good job man!