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
// Detach removes content from the signed data struct to make it a detached signature.// This must be called right before Finish()func (sd*SignedData) Detach() {
sd.sd.ContentInfo=contentInfo{ContentType: oidSignedData}
}
following is my code line hello.go line 108, it will send a response to my android app that use bouncycastle lib, the lib throws following error new CMSException("content-type attribute value does not match eContentType");, it check this if (!signedContentType.equals(contentType))
the Content-Type of the following openssl smime v3.1 detached signature command line tool: openssl cms -sign -md sha1 -noattr -signer public.crt -inkey public.key -in PO.edifact -out signedPO.edifact, is 1.2.840.113549.1.7.1, while your detached function is 1.2.840.113549.1.7.2
following is the sample of the above hello.go's http response
Is pkcs7.go's Detach function, do cause mismatch Content-Type according to RFC 3852 Section 11.1?
following is my code line hello.go line 108, it will send a response to my android app that use bouncycastle lib, the lib throws following error
new CMSException("content-type attribute value does not match eContentType");
, it check thisif (!signedContentType.equals(contentType))
the
Content-Type
of the following openssl smime v3.1 detached signature command line tool:openssl cms -sign -md sha1 -noattr -signer public.crt -inkey public.key -in PO.edifact -out signedPO.edifact
, is1.2.840.113549.1.7.1
, while your detached function is1.2.840.113549.1.7.2
following is the sample of the above hello.go's http response
The text was updated successfully, but these errors were encountered: