How to self-signed SSL certificate 1024 bit, x509 format

Hi there,

In the personal cloud we need to sign a piece of tekst before submitting it to a webservice. We have a self signed ssl certificate 1024 bit of x509 format. We tried using the CryptoAPI to do a RSA sign but the outcome of the function does is not the data we expect it to be.

Outcome RSA_SIGN with SHA256/PKCS1 algorithm:

GrbTu0LYuZNCcuF7YlTc+dd4XaE0rJxASQ7kQvSOVbUU2n13YNPpEqSM7mRSfkpCP4y3KNBq+Dr9eX37EeS41chL3fGJltBEHI89zWPymp0ybl/WWGR3zqFO56s2NQcEplcMCvfmU2HD8hFX0W9ssM+scXz5U+ReA6R8Uj6QlPs=


Expected value base64:

M+SNDJvfwUkpyEVicYpCytBWWK2zjdJ8sN55eEFwMPrWcZcjNv3ceTeyvik7zJkeuDAeTZ4JreXhtD7TShQlpkzw9PC0lArK0ejwb1ZVT5bDiGi3h7zfmPAaWPeicmjqLV4AbVJasRK5JPeSnR1afUCOy/WfDST9lI1BmG7gabcakVhQgVfEsZ7eb5Eq95VX1bgCLCAqScO7gmM5HT1LefiQzOh79IT+2BD7Au4z56y6NgIJa7VuYTR2pTJ8FZNzhqXBC+HGN7/u3aelr+Y4eCww9bvv10A5Z41SW6IlbbEQPzTb1yz3y35yW6C9x656YqQdc4/DNRZqgweZxRUzrA==


We know the expected value because we asked the other party to provide us with the correct outcome so we can validate it. When we use the expected value on the webservice it works so where only struggling to get the correct value.



Hi Freek,

Can you have the self signed certificate 1024 bit with x509 created as explained in article and then use this as CryptoAPI to get the expected base64 value?