在我的代码中,调用FileConnection方法(open,create,mkdir,delete);因此,在启动应用程序时,有问题要求应用程序想要从设备读取文件。所以我搜索了我正在使用的手机,如果有签名应用程序的证书,那么我在Java目录下找到了这些证书。以下列出了“受信任的证书”:
Issuer:
C=US; O=VeriSign, Inc.; OU=Class 3 Public Primary Certification Authority - G2
Not valid before:5/19/1998
Valid not after: 8/2/2028
Domain:thirdparty
Issuer:
C=US; O=VeriSign, Inc.; OU=Class 4 Public Primary Certification Authority - G2
Not valid before:5/19/1998
Valid not after: 8/2/2028
Domain:thirdparty
Issuer:
CN=VeriSign Class 3 Public Primary Certification Authority - G3; C=US; O=Verisign,
Inc.; OU=Verisign Trust Network
Not valid before:10/2/1999
Valid not after: 7/17/2036
Domain:thirdparty
Issuer:
CN=VeriSign Class 4 Public Primary Certification Authority - G3; C=US; O=Verisign,
Inc.; OU=Verisign Trust Network
Not valid before:10/2/1999
Valid not after: 7/17/2036
Domain:thirdparty
Issuer:
C=US; O=VeriSign, Inc.; OU=Class 1 Public Primary Certification Authority
Not valid before:1/30/1996
Valid not after: 8/2/2028
Domain:thirdparty
Issuer:
C=US; O=VeriSign, Inc.; OU=Class 2 Public Primary Certification Authority
Not valid before:1/30/1996
Valid not after: 8/2/2028
Domain:thirdparty
Issuer:
C=US; O=VeriSign, Inc.; OU=Class 3 Public Primary Certification Authority
Not valid before:1/30/1996
Valid not after: 8/2/2028
Domain:thirdparty
Issuer:
CN=alcatel; C=FR; O=a; OU=a
Not valid before:3/11/2004
Valid not after: 3/6/2024
Domain:manufacturer
Issuer:
CN=Thawte Premium Server CA; C=ZA; ST=Western Cape; L=Cape Town; O=Thawte Consulting cc; OU=Certification Services Division; E=premium-server@thawte.com
Not valid before:8/2/1996
Valid not after: 1/1/2021
Domain:thirdparty
Issuer:
CN=Thawte Server CA; C=ZA; ST=Western Cape; L=Cape Town; O=Thawte Consulting cc; OU=Certification Services Division; E=server-certs@thawte.com
Not valid before:8/2/1996
Valid not after: 1/1/2021
Domain:thirdparty
我可以使用其中一个吗?如果是这样我该怎么用呢?
答案 0 :(得分:0)
这些是您设备上安装的证书颁发机构的根证书。您需要使用来自这些机构的代码签名证书对您的代码进行签名。以下是verisign http://www.verisign.com/code-signing/sun-java/index.html
的链接另请阅读MIDP security。