keytool

Keytool usage with Runtime.getRuntime().exec() under Linux

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'd like to call the java keytool during runtime execution providing dynamic arguments. Here's what is working under Windows, but not under Linux (Ubuntu) same Java 1.6.0: File f = new File ( "mykey.jks" ); StringBuilder command = new StringBuilder (); command . append ( System . getProperty ( "java.home" ) + System . getProperty ( "file.separator" ) + "bin" + System . getProperty ( "file.separator" ) + "keytool" ); command . append ( " -genkey" ); command . append ( " -dname \"cn=foo,ou=bar,o=company,c=CH\"" ); command . append (

I'm having trouble getting SHA1 certificate with keytool

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to find the SHA1 hash of my signature key store on macos sierra using the following comand: keytool -exportcert -alias androiddebugkey -keystore $HOME/.android/debug.keystore -list -v -storepass android The result looks like below: Date of creation: Oct 25, 2017 Input Type: PrivateKeyEntry Length of certificate chain: 1 Certificate [1]: keytool error: java.util.IllegalFormatConversionException: d != java.lang.String java.util.IllegalFormatConversionException: d != java.lang.String at java.base/java.util.Formatter$FormatSpecifier

Jmeter 2.10 HTTP recorder throws keytool exception

匿名 (未验证) 提交于 2019-12-03 01:11:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to investigate jmeter and have quickly run into some problems. I am attempting to follow the tutorial at http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf . When I attempt to start the recorder I get a cannot create proxy error. The logs give me this message: 2013 / 10 / 23 13 : 40 : 54 INFO - jmeter . util . JsseSSLManager : Using default SSL protocol : TLS 2013 / 10 / 23 13 : 40 : 54 INFO - jmeter . util . JsseSSLManager : SSL session context : per - thread 2013 / 10 / 23 13 : 54 : 32 WARN - jmeter .

Android keystore stopped working

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Just recently I have had a problem with a key store. I know there are plenty of questions about this problem already. I have read them all and Googled furiously. Error: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55) at java.security.KeyStore.load(KeyStore.java:1214) at sun.security

How do I get into a non-password protected Java keystore or change the password?

假装没事ソ 提交于 2019-12-03 00:39:14
问题 I'm trying to import a trusted certificated into the Java cacerts keystore, but I have a problem. I tried to list existing trusted certificates and it seems that the keystore isn't password protected. $ keytool -list -keystore cacerts Enter keystore password: ***************** WARNING WARNING WARNING ***************** * The integrity of the information stored in your keystore * * has NOT been verified! In order to verify its integrity, * * you must provide your keystore password. * **********

What should I use for “Distinguished Name” in our Keystore for the Android Market

早过忘川 提交于 2019-12-03 00:29:14
I'm about to release an application in the Android Market. I need to generate a keystore to sign my application. The docs are a little spares on what I'm support to put into for the -dname param. Here is the line I'm using: keytool -genkey -v -alias release -keyalg RSA -keysize 2048 -dname "CN=mydomain.com" -keystore my.keystore -validity 10000 What is required in the -dname (Distinguished Name) field? I found out that I can include the CN field. Are there other fields that I must put in before the Market will accept the app? Any good optional ones to put in? Updated I found out I can examine

weblogic12g https之单双向ssl

匿名 (未验证) 提交于 2019-12-03 00:21:02
本文主要讲weblogic服务器所需的密钥库文件的生成及使用,前提是weblogic上web项目已经发布好了。 下载openssl地址 linux:源码( http://www.openssl.org/source/ ),源码要编译好才能用,具体方法百度; 或者直接yum install openssl -y 安装openssl windows: http://www.slproweb.com/products/Win32OpenSSL.html 使用openssl制作证书及密钥库 //根证书制作 openssl genrsa -out ca/ca -key . pem 2048 openssl req -new -out ca/ca -req . csr -key ca/ca -key . pem -config openssl . cfg -subj "/CN=ybj/OU=hr/O=hr/L=sh/ST=sh/C=CN" openssl x509 -req -in ca/ca -req . csr -out ca/ca -cert . pem -signkey ca/ca -key . pem -days 3650 //生成密钥库文件 keytool -genkey -alias example -validity 3650 -keyalg RSA -keysize 1024

keytool error bash: keytool: command not found

人走茶凉 提交于 2019-12-02 23:28:06
I have tried to execute keytool from Java bin directory but I get an error with warning bash: keytool: command not found. root@xxxxxx]# keytool -genkey -alias mypassword -keyalg RSA bash: keytools: command not found user217929 These are the steps which solved my problem: search the path where my java was installed find / -name jre move to java directory (where jre was installed on my server) cd /path/to/jre/location create ssl certificate with keytool command ./keytool -genkey -alias [mypassword] -keyalg [RSA] Use ./keytool -genkey -alias mypassword -keyalg RSA Ensure jre is installed. cd

keytool import certificate java.util.IllegalFormatConversionException in linux

空扰寡人 提交于 2019-12-02 23:08:42
I am tring to create a keystore to be used in tomcat but I get the error "java.util.IllegalFormatConversionException: d != java.lang.String" using keytool. This happens only in linux (centos7) but not in windows. I created the keystore with keytool -genkey -keyalg RSA -alias client -keystore testkeystore -storepass mypassword -validity 3650 and tried to import the certificate with keytool -import -alias arubaauth -trustcacerts -keystore testkeystore -file root_autenticazione_ATe.cer The same commands and the same certificate do not show any error in windows. What is wrong? Thanks in advance I

【SSL】java keytool工具操作JKS证书库

匿名 (未验证) 提交于 2019-12-02 21:53:52
java : jdk1.8 证书库:java自带证书库。 证书库密码:java自带证书库的默认密码为“changeit”。 jdk安装位置:C:\Program Files\Java\jdk1.8.0_144\ 证书库位置:C:\Program Files\Java\jdk1.8.0_144\jre\lib\security\ 证书库文件名:cacerts keytool -list -keystore "C: \Program Files \Java \jdk 1.8.0_144 \jre \lib \security \cacerts " -storetype JKS -storepass changeit //打印所有证书的详情 keytool -list -v -keystore "C:\Program Files\Java\jdk1.8.0_144\jre\lib\security\cacerts" -storetype JKS -storepass changeit //打印某一个证书的详情 keytool -list -v -alias < 证书别名,需要替换 > -keystore "C:\Program Files\Java\jdk1.8.0_144\jre\lib\security\cacerts" -storetype JKS -storepass