Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to re-sign a Java applet with a newer certificate?

I have a signed Java applet, and the certificate just expired. I have a new certificate, but I'm not sure that I can find the original, unsigned applet jar file. Is there any way that I can take the signed jar and replace the old certificate with a new one? Thanks.

like image 572
jay Avatar asked Nov 04 '22 22:11

jay


1 Answers

You can't wrap it.

However, you should be able to simply re-sign the JAR with a different certificate. Signing a JAR doesn't encrypt it in anyway. It just adds stuff to the manifest section.

This is not a security issue. The re-signed certificate is different to the original one, the end-user has to accept it all over again. (I don't think you can avoid that ... because it would be a security issue!)


Anyway, the simple approach is to just try re-signing the signed applet JAR, and see whether it works, and how it behaves when you try to run it as a user.

like image 66
Stephen C Avatar answered Nov 12 '22 15:11

Stephen C