密钥库是实际证书,还是别名证书?
如果我使用不同的别名来签署我的应用程序,它会破坏市场上的更新吗?或者我是否需要使用不同的密钥库来签署我的应用程序以解决问题?别名中的信息可以从何处查看?
我用一个密钥签署了我的JWS应用程序MemorizEasy,其别名为:memofile.reference.emma.jar =/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar
我不记得为什么我选择了这么长的别名.我怀疑它只是备忘录,但在我的项目设置中我有:jnlp.signjar.alias = memofile.reference.emma.jar =/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar我现在更新应用程序并使用maven我需要将别名指定为:memofile.reference.emma.jar =/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar
然而,这不起作用.尝试使用别名mjee的另一个键可行.那么我可以更改密钥的别名吗?如果是这样,怎么样?否则,Maven为什么不接受我的别名呢?
我想将多个证书从Resource文件添加到Android KeyStore:
if (sslContext==null) {
// loading CA from an InputStream
InputStream is = AVApplication.getContext().getResources().openRawResource(R.raw.wildcard);
String certificates = Converter.convertStreamToString(is);
String certificateArray[] = certificates.split("-----BEGIN CERTIFICATE-----");
for (int i = 1; i < certificateArray.length; i++) {
certificateArray[i] = "-----BEGIN CERTIFICATE-----" + certificateArray[i];
//LogAV.d("cert:" + certificateArray[i]);
// generate input stream for certificate factory
InputStream stream = IOUtils.toInputStream(certificateArray[i]);
// CertificateFactory
CertificateFactory cf = CertificateFactory.getInstance("X.509");
// certificate
Certificate ca;
try {
ca = cf.generateCertificate(stream);
} finally {
is.close();
}
// creating a KeyStore containing our …Run Code Online (Sandbox Code Playgroud)