Hello Mustafa,
I can see in the traces "sec_cmsobj_sign_ContentInfo(): No appropriate certificate".
So it seems that the certificate fits not the requirements for signing.
Could you please attach the certificate and its certificate chain here ?
best regards
Alexander Gimbel