Question

I basically need to create a self signed certificate and then sign a binary stream with it to create a signature. I tried searching Google but i can't seem to get the right keywords for related results. Any help is appreciated.

Was it helpful?

Solution

You need to use the private key, not the certificate to sign a stream. Since you tagged this with Java, I am assuming you want to use the JCA.

Check out this example: http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html#SigEx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top