33 reputation
115
bio website
location
age
visits member for 2 years
seen Apr 9 at 6:21

Mar
31
awarded  Famous Question
Dec
10
awarded  Notable Question
Sep
6
awarded  Popular Question
Jun
21
awarded  Supporter
Jun
21
comment PKCS7 encoding in Java without external libs like BouncyCastle etc
@7sigma, you are a genius. Thanks a lot. I'll try this asap.
Jun
19
revised PKCS7 encoding in Java without external libs like BouncyCastle etc
added 114 characters in body
Jun
19
awarded  Editor
Jun
19
comment PKCS7 encoding in Java without external libs like BouncyCastle etc
Thanks a lot @7sigma. You help me to not give up with this issue. I updated my post with C# and Java code and outputs. I generated my own certificate and tried to sign data with it. Here is my store link. You'll see one small difference between the outputs.
Jun
19
revised PKCS7 encoding in Java without external libs like BouncyCastle etc
updated with code and outputs
Jun
12
comment PKCS7 encoding in Java without external libs like BouncyCastle etc
actually I can't generate the same signature neither with sun.* classes not with the bouncycastle . Obviously I am doing smth wrong. But what..
Jun
12
awarded  Scholar
Jun
12
comment PKCS7 encoding in Java without external libs like BouncyCastle etc
thanks a lot. it is very close to the original signature, that I could generaty with .Net's SignedCms. Anyway the signature (that was genereted with the code you provide) has different length from that .Net's signature.
Jun
12
accepted PKCS7 encoding in Java without external libs like BouncyCastle etc
Apr
19
comment PKCS7 encoding in Java without external libs like BouncyCastle etc
yeah, I gave up using sun.* classes =) but anyway I think it can be done by using them. I looked at BouncyCastle. I managed to sign and enode my data but the signature is different from that one C# SignedCms generated. Actualy some parts of my signature are the same but the rest is different from .Net signature. e.g. .Net 308206BC06092A86488, Java 308006092A864886F70D010702A0. And Java signature has different length aswell
Apr
18
awarded  Student
Apr
18
asked PKCS7 encoding in Java without external libs like BouncyCastle etc