keytool

PFX to JKS keytool conversion: Alias <*> does not exist

馋奶兔 提交于 2020-02-13 08:36:08
问题 I'm trying to convert x.PFX file to x.JKS file using keytool but I am getting following error: keytool error: java.lang.Exception: Alias <2> does not exist Actions that preceded this error are: Listing x.PFX file content (just to read alias name): keytool -v -list -storetype pkcs12 -keystore x.pfx Enter keystore password: x Keystore type: PKCS12 Keystore provider: SunJSSE Your keystore contains 1 entry Alias name: 2 Creation date: 11-nov-2012 Entry type: PrivateKeyEntry Certificate chain

PFX to JKS keytool conversion: Alias <*> does not exist

倖福魔咒の 提交于 2020-02-13 08:36:01
问题 I'm trying to convert x.PFX file to x.JKS file using keytool but I am getting following error: keytool error: java.lang.Exception: Alias <2> does not exist Actions that preceded this error are: Listing x.PFX file content (just to read alias name): keytool -v -list -storetype pkcs12 -keystore x.pfx Enter keystore password: x Keystore type: PKCS12 Keystore provider: SunJSSE Your keystore contains 1 entry Alias name: 2 Creation date: 11-nov-2012 Entry type: PrivateKeyEntry Certificate chain

android 真机调用高德地图API log报 KEY鉴权失败

喜你入骨 提交于 2020-02-07 11:36:08
log报 KEY鉴权失败 解决 第一步: 检查高德开放平台-控制台-应用管理-我的应用,key的值是否与你Android studio 项目中,AndroidManifest.xml文件中application标签里的meta-data android:value的属性一致 < meta-data android: name = " com.amap.api.v2.apikey " android: value = " 你的key " /> 第二步: 检查SHA1安全码(两个都要填)是否与本地key.jks密钥库中的一致。 注意这里的SHA1获取方式。 我试了试网上的大部分方法。最后用的是cmd 在JDK的bin路径下才能进来这个密钥库。 cd C:\Program Files\Java\jdk-13.0.1\bin keytool 后面的是jks文件的路径。 keytool -list -v -keystore C:\Users\Mr.wang\Desktop\Innovation_project\key.jks 在其他地方keytool指令都不好使。 来源: CSDN 作者: Wlikell 链接: https://blog.csdn.net/Wlikell/article/details/103843782

tls/ssl证书生成和格式转换

末鹿安然 提交于 2020-02-07 02:52:49
生成密钥: openssl genrsa -out privkey.pem 2048 生成csr申请文件: openssl req -sha256 -new -key privkey.pem -out pubkey.pem 生成自签名证书: openssl x509 -req -days 365 -in my.csr -signkey my.key -out my.crt 转换为pfx格式: openssl pkcs12 -export -out my.pfx -inkey my.key -in my.pem PKCS7 转 PEM: openssl pkcs7 -print_certs -in my.cer -out my.pem JKS 转 PKCS12: keytool -importkeystore -srckeystore my.jks -destkeystore my.p12 -srcstoretype JKS -deststoretype PKCS12 -srcstorepass passwordText -deststorepass passwordText -srcalias aliasText -destalias aliasText -srckeypass passwordText -destkeypass passwordText -noprompt

Maven导包失败

假装没事ソ 提交于 2020-02-06 04:23:25
记一次改了N天的bug( 依旧没有完全解决 ) 之前做的Maven项目近期一打开,突然依赖哪里全部报错!!! 我就知道,完蛋了一切得重新来了。它只报了一个错误 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 就是说我需要安装整证书 另外一条路就是说…换一个镜像呗。 下面是我试验过的几个镜像。。。。。 <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>https://maven.aliyun.com/repository/public</url> </mirror> <mirror> <id

Keytool常用命令

吃可爱长大的小学妹 提交于 2020-02-02 01:07:05
前言 使用Keytool需先安装jdk Windows安装jdk ubunt16.04命令行安装jdk Keytool简介 Keytool 是一个Java数据证书的管理工具 。 Keytool将密钥(key)和证书(certificates)存在一个称为keystore的文件中。 Keystore文件,包含两种数据: 密钥实体 (Key entity)- 密钥 (secret key)或者是私钥和配对公钥(采用非对称加密)可信任的 证书实体 (trusted certificate entries)-只包含 公钥 。 创建证书 创建一个别名为 test1 的证书条目,该条目存放在名为 test.jks 的密钥库中,若 test.jks 密钥库不存在则创建。 keytool -genkeypair -alias "test1" -keyalg "RSA" -keystore "test.jks" 参数说明 -genkeypair :生成一对非对称密钥; -alias :指定密钥对的别名,该别名是公开的; -keyalg :指定加密算法,本例中的采用通用的RAS加密算法; -keystore : 密钥库的路径及名称,不指定的话,默认在操作系统的用户目录下生成一个 .keystore 的文件。 注意 1.“名字与姓氏”应该是域名,若输成了姓名,和真正运行的时候域名不符,会出问题; 2

How to convert .p12 to .crt file?

空扰寡人 提交于 2020-01-30 04:50:34
问题 Can anyone tell me the correct way/command to extract/convert the certificate .crt file from a .p12 file? After I searched. I found the way how to convert .pem to .crt. but not found .p12 to .crt. 回答1: Try with given command openssl pkcs12 -in filename.p12 -clcerts -nokeys -out filename.crt 回答2: You tagged 'keytool'. If you mean Java keytool, which is not the only one, it can do this: keytool -keystore in.p12 -storetype pkcs12 -exportcert -file out.crt -rfc -alias $name # for java9 up omit

using OpenSSL to create .pfx file

心已入冬 提交于 2020-01-29 13:21:06
问题 I've been offered some commands to create a .pfx file using OpenSSL. For the most part, my partner gathered this information from: Is it possible to convert an SSL certificate from a .key file to a .pfx? I have the following files: 2010certificate.cer 2010cert_and_key.pem private_verisign10to11.key I have tried to generate with both: openssl pkcs12 -export -out s2010-1.pfx -inkey private_verisign10to11.key -in 2010cert_and_key.pem -certfile 2010certificate.cer and openssl pkcs12 -export -out

using OpenSSL to create .pfx file

做~自己de王妃 提交于 2020-01-29 13:19:47
问题 I've been offered some commands to create a .pfx file using OpenSSL. For the most part, my partner gathered this information from: Is it possible to convert an SSL certificate from a .key file to a .pfx? I have the following files: 2010certificate.cer 2010cert_and_key.pem private_verisign10to11.key I have tried to generate with both: openssl pkcs12 -export -out s2010-1.pfx -inkey private_verisign10to11.key -in 2010cert_and_key.pem -certfile 2010certificate.cer and openssl pkcs12 -export -out

using OpenSSL to create .pfx file

让人想犯罪 __ 提交于 2020-01-29 13:19:46
问题 I've been offered some commands to create a .pfx file using OpenSSL. For the most part, my partner gathered this information from: Is it possible to convert an SSL certificate from a .key file to a .pfx? I have the following files: 2010certificate.cer 2010cert_and_key.pem private_verisign10to11.key I have tried to generate with both: openssl pkcs12 -export -out s2010-1.pfx -inkey private_verisign10to11.key -in 2010cert_and_key.pem -certfile 2010certificate.cer and openssl pkcs12 -export -out