You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing such p12 file in Windows 10 or 11 to OS cert store works unstable - sometimes key+cert is imported fine but sometimes it seems key is not attached to cert (smartcard dialog appears on import, auth using such cert does not work, windows cert console displays cert+key in other certs not personal).
certutil also throws an error when trying to open such p12 file:
No such problems when importing same file in Firefox or Android.
p12 files produced by Firefox and OpenSSL do not contain splitted octet strings (only prims) and work fine in Windows.
After disabling splitting in pkijs i.e.
- if (this.encryptedContent.idBlock.isConstructed === false && !parameters.disableSplit) {
+ if (this.encryptedContent.idBlock.isConstructed === false && !parameters.disableSplit && false) {
p12 produced using code #403 contains cert and key as prim not splitted (same like in Firefox and OpenSSL results) and works fine in Windows/certutil (salt must be also reduced like in #300 (comment)).
Please verify and disable splitting octet strings in p12 (and other formats where splitting is not absolutely necessary, i.e. PKCS#8 maybe) for Windows compatibility.
The text was updated successfully, but these errors were encountered:
PKCS#12 created using code from #403 gives us splitted encrypted key payload and splitted encrypted cert payload (1024B boundary):
Importing such p12 file in Windows 10 or 11 to OS cert store works unstable - sometimes key+cert is imported fine but sometimes it seems key is not attached to cert (smartcard dialog appears on import, auth using such cert does not work, windows cert console displays cert+key in other certs not personal).
certutil also throws an error when trying to open such p12 file:
No such problems when importing same file in Firefox or Android.
p12 files produced by Firefox and OpenSSL do not contain splitted octet strings (only prims) and work fine in Windows.
After disabling splitting in pkijs i.e.
p12 produced using code #403 contains cert and key as prim not splitted (same like in Firefox and OpenSSL results) and works fine in Windows/certutil (salt must be also reduced like in #300 (comment)).
Please verify and disable splitting octet strings in p12 (and other formats where splitting is not absolutely necessary, i.e. PKCS#8 maybe) for Windows compatibility.
The text was updated successfully, but these errors were encountered: