Java – how to sign jars that never expire?
•
Java
I signed my jar file with jarsigner But I received a warning:
Warning: This jar contains entries whose signer certificate will expire within six months.
How to make it never expire or expire for a longer time?
Solution
Specify the required number of days in the - validity parameter as keytool
Appendix: - validity is an option of keytool
keytool -genkey -alias sawyer -validity 1234 -dname "…"
After creating a new key, sign the jar with its unique alias with jarsigner
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码