You cannot wrap it.
However, you should simply rewrite the JAR with a different certificate. Signing a JAR does not encrypt it anyway. It simply adds material to the manifest section.
This is not a security issue. The re-signed certificate is different from the original, the end user must accept it again and again. (I donβt think you can avoid this ... because it will be a security issue!)
In any case, a simple approach is to simply re-subscribe the signed JAR applet and see if it works and how it behaves when trying to run it as a user.
source share