LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2009, 02:54 PM   #1
nbcohen
Member
 
Registered: Mar 2003
Location: Northern Virginia
Distribution: RH Enterprise, Fedora
Posts: 96

Rep: Reputation: 17
Keytool question


I am attempting to add a certificate to a keystore file using keytool.
For reasons I can't go into (bottom line - "that's the way it is"), the keystore file in question does not have a password on it - that may change, but right now it doesn't. And keytool won't let me add the certificate.

I've tried keytool -import -keystore <path to keystore> -file <path to cert file> and it asks for a password. Typing <CR> gets it to tell me that the password must be at least 6 characters.

Doing a keytool -list also asks for a password, but typing <CR> lists the entries in the file.

Is there something I can do with keytool to override the password check? I looked through the man page, but I may have missed something there...
Any help would be appreciated...

thanks,

nbc
 
Old 11-15-2009, 12:15 AM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 420

Rep: Reputation: 62
there is a password option -storepass to pass the password on the command line and you can just use -storepass "" to specify a blank password.

I dont have a keystore created right now to try it but IIRC that should work



-Slimm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux distro question & mysql install question natalie.aloi Linux - Newbie 5 07-19-2009 09:28 PM
keytool error: java.lang.Exception: Input not an X.509 certificate ChrisScott Linux - Server 1 09-13-2007 03:48 AM
howto install keytool under debian sarge ? cccc Debian 1 08-09-2006 04:00 AM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 05:23 AM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 03:02 PM


All times are GMT -5. The time now is 10:34 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration