how to view signed jar expiration time

来源:互联网 发布:大数据项目经理 面试 编辑:程序博客网 时间:2024/05/16 23:47

<script type="text/javascript"><!-- google_ad_client = "pub-1992382271196226";/* 728x90, 创建于 08-3-9 */google_ad_slot = "1653402536";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

 

First, use below command to verify the jar is signed correctly.

    jarsigner –verify XXX.jar

if the jar is signed correctly you will see below output
    jar verified.

Second, you can use winrar to unpack file META-INF/XXXX.RSA in the signed jar. If you don’t have winrar, you can use below command to unpack the jar.
    jar -xvf <lib>.jar
thenyou can see XXXX.RSA file under META-INF directory. Use below commandyou can see the detail info of the cert which you used to sign.
    keytool -printcert -v -file META-INF/XXXX.RSA

 

<script type="text/javascript"><!-- google_ad_client = "pub-1992382271196226";/* 728x15, 创建于 08-9-3 */google_ad_slot = "9127232582";google_ad_width = 728;google_ad_height = 15;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>