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
I have two base64 encoded SMIME files which I put into forge.pkcs7.messageFromPem()
On the original file, there is a sequence with 0 elements, and it is making Forge to throw an error (left window on picture). Then I changed the empty sequence to null and then Forge accepts the file (right window on picture).
Is it not allowed to have an empty sequence? Or is it a bug?
Thanks in advance for any help!
Edit:
Error stack:
var p7 = forge.pkcs7.messageFromPem(pem);
p7.messageFromPem
p7.messageFromAsn1
msg.fromAsn1
_recipientInfosFromAsn1
_recipientInfoFromAsn1
var error = new Error('Cannot read PKCS#7 message. ' + 'ASN.1 object is not an PKCS#7 EnvelopedData.');
The text was updated successfully, but these errors were encountered:
Hi @Cyb3rFr3ak -- super busy at the moment, but I will get to looking into this when I can. I'll have to look at the spec to see if there can be an empty sequence in that position or not -- and if so, change the forge code to accept it, if not, it's an invalid file.
Hi,
I have two base64 encoded SMIME files which I put into forge.pkcs7.messageFromPem()
On the original file, there is a sequence with 0 elements, and it is making Forge to throw an error (left window on picture). Then I changed the empty sequence to null and then Forge accepts the file (right window on picture).
Is it not allowed to have an empty sequence? Or is it a bug?
Thanks in advance for any help!
Edit:
Error stack:
var p7 = forge.pkcs7.messageFromPem(pem);
p7.messageFromPem
p7.messageFromAsn1
msg.fromAsn1
_recipientInfosFromAsn1
_recipientInfoFromAsn1
var error = new Error('Cannot read PKCS#7 message. ' + 'ASN.1 object is not an PKCS#7 EnvelopedData.');
The text was updated successfully, but these errors were encountered: