keytool

PKCS12 to JKS conversion failure

烂漫一生 提交于 2019-12-07 19:41:30
问题 I'm trying to convert a PKCS12 format file to a JKS keystore using the command: keytool -v -importkeystore -trustcacerts -srckeystore cert.p12 -srcstoretype PKCS12 -destkeystore md_keystore.jks -deststoretype JKS This returns the following message: 0 entries successfully imported, 0 entries failed or cancelled I've taken a look at the cert.p12 file using openSSL and it appears to be fine - it contains the full certificate chain and the private key. There is no stacktrace being returned either

Is this code signing certificate valid for signing applets?

烈酒焚心 提交于 2019-12-07 13:48:18
问题 We purchased a code signing certificate for signing applets, but we get the following error when signing an applet. C:\CM\WEB-INF>jarsigner -keystore code_signing.keystore C:\CM\SweetApplet.jar code_signing_real Enter Passphrase for keystore: jarsigner: Certificate chain not found for: code_signing_real. code_signing_real must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain. Is our certificate not correct? Here's the certificate in

Generate GOST 34.10-2001 keypair and save it to some keystore

淺唱寂寞╮ 提交于 2019-12-07 11:36:29
问题 Currently I need to generate a keypair for GOST 34.10-2001 signature algorithm. It was pleasant to discover that bouncy castle provider has supported this algorithm, but I can not generate a keypair and save it to any keystore of any type. Currently I tried this command (this command works great if keyalg is DSA and sigalg is SHA1withDSA ): keytool -genkey -alias test1 -keyalg ECGOST3410 -keysize 512 -sigalg GOST3411withECGOST3410 \ -keypass test_1 -validity 1000 -storetype JKS -keystore

How to set default language for java keytool?

自作多情 提交于 2019-12-07 08:54:55
问题 I use Windows OS with English language and US keyboard setting. I use this command to generate keystore. It works fine. C:\java6\jre\bin\keytool -genkey -keyalg RSA -alias mykey -validity 3652 -keystore C:\mykeystore -storepass 111111111 < data.txt The data.txt My name My org unit My org My city My state ch yes However, this program cannot work normally on Windows with German language and keyboard setting. I must change the word " yes "" to " ja " in data.txt to make it works. It isn't good

Difference between Entry Type “keyEntry” and “trustedCertEntry” in a keystore

て烟熏妆下的殇ゞ 提交于 2019-12-06 19:05:22
问题 I don't have much knowledge in this area, but i have still tried to do things by googling. Here is the problem i am facing. Case 1(Works): I have a CA signed certificate and i would like to use it in my Web Application. I first created a keystore. I see that it creates an entry type "keyEntry" in the keystore. Then i import the CA signed certificate to the keystore created. Here are the steps: keytool -genkeypair -keystore keystore.jks I see an entry in the keystore of type "keyEntry" of

java.io.IOException: Invalid keystore format using Tomcat server

主宰稳场 提交于 2019-12-06 16:57:07
问题 On enabling ssl mode in Tomcat 7, I'm getting the following error on my tomcat logs I have genrated .key file using openssl like below openssl genrsa -des3 -out localhost 2048 And I given the path to my key file in tomcat server.xml SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"] java.io.IOException: Invalid keystore format 回答1: openssl genrsa -des3 -out localhost 2048 generates a private key. What you need to run a web server using HTTPS is a private

Check android keystore keypass for correctness

别说谁变了你拦得住时间么 提交于 2019-12-06 16:32:40
问题 I'm automating some things that involve the android keytool and jarsigner. The tool takes a keystore, the password for the keystore, the alias name, and the password for the alias / key, and I'm trying to find a way to explicitly check to see if the supplied password for the alias / key is correct. Any ideas? Also, I need to check it without a jar file to sign - getting that file in my context is lengthy, so I want to abort sooner rather than later. 回答1: You can also check if the password is

Java SSL connection with self-signed certificate without copying complete keystore to client

匆匆过客 提交于 2019-12-06 15:50:58
问题 I am setting up a licensing servlet in Java together with a client app that will post request for new licenses and validate existing licenses at that server. The servlet runs in Tomcat. I've configured Tomcat so that it only allows connections to the servlet over https, and this works just fine. I have created a self-signed certificate using 'keytool -genkey -alias www.mysite.com -keyalg RSA -keystore license.store' which creates a file license.store and pointed tomcat to this keystoreFile

FaceBook的秘钥散列获取

南楼画角 提交于 2019-12-06 15:10:46
随笔记录 先下载 OpenSSL工具 在C盘创建一个openssl,将下好的 OpenSSL工具 解压到这里 将你的 .keystore文件复制到JAVA JDK 文件夹的bin目录里面(C:\Program Files (x86)\Java\jdk1.8.0_144\bin) win+R打开命令控制器,cd到JANA JDK的bin文件夹下 执行这个命令 keytool -exportcert -alias androiddebugkey -keystore debug.keystore > c:\openssl\bin\debug.txt 其中androiddebugkey是你 .keystore文件的别名,debug是你 .keystore文件的名字。所以命令要这么写(网上好多说debug.keystore找不到的...): keytool -exportcert -alias 秘钥别名 -keystore 秘钥名字.keystore > c:\openssl\bin\秘钥名字.txt 密码默认为:android 注:下方的命令中的debug按照这个方式修改 出现这种错误: keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect 一般情况下是你密码错啦,

How to utilize keytool programmatically?

混江龙づ霸主 提交于 2019-12-06 14:06:42
It seems to me that there are hardly any good tools out there that help webapp deployers secure their environment. I feel like a lot of deployment grief comes in because the admin hasn't been properly tooled to ignore the intricacies and of TLS/SSL. I once had the good luck of seeing a really good UI management that was intuitive, for an admin of any level, in either websphere or weblogic (i forget) but nothing like that is available today out in the open source community. I would like to put together something for tomcat one day so I'm experimenting and trying to figure out how "not to re