- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I export private key from gateway.jks
- Labels:
-
Apache Knox
Created ‎02-07-2017 09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to get the private key from gateway.jks and tried the following command on my test cluster:
keytool -importkeystore -srckeystore ./gateway.jks -destkeystore gateway.jks -srcstoretype JKS -deststoretype PKCS12 -srcstorepass hadoop -srckeypass hadoop -deststorepass changeit -destkeypass changeit
Then getting error:
keytool error: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
Does anyone know how to fix/workaround above error?
Created ‎02-07-2017 09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The destination and source keystore are the same file: gateway.jks
Change the filename of -destkeystore gateway.jks maybe -destkeystore gateway.p12?
You'll also need to specify the alias: -alias gateway-identity
Created ‎02-07-2017 09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The destination and source keystore are the same file: gateway.jks
Change the filename of -destkeystore gateway.jks maybe -destkeystore gateway.p12?
You'll also need to specify the alias: -alias gateway-identity
Created ‎02-07-2017 09:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, it was my stupid typo. Thanks!
Created ‎02-07-2017 04:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Seems like your keystore file is not valid. Are you able to do -list operation on that file? if the keystore file is not sensitive you can attach it here, can validate the file
