aspose file tools*
The moose likes Linux / UNIX and the fly likes Immport SSL Certificate in RHEL using keytool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Immport SSL Certificate in RHEL using keytool " Watch "Immport SSL Certificate in RHEL using keytool " New topic
Author

Immport SSL Certificate in RHEL using keytool

jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 85

Hi,


I want to Import new SSL Certificate in RedHat Linux server using keytool. Anyone know the command for the same. ?

Thanks & Regards,
Jaya
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16246
    
  21

keytool.

However, that's just for Java certs. If you want to install a cert for Apache, you have to edit the Apache configuration. There's also a directory in the /etc designed to hold the actual cert files, although I don't remember its exact name (which varies, depending on the RHEL version).


Customer surveys are for companies who didn't pay proper attention to begin with.
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 85

Hi Tim,

I am supposed to use keytool only. Can you please confirm below command what i use is valid one.

/opt/java1.5/bin/keytool -import -alias alias_name -v -keystore "keystore path" -storepass "keystore password" -file "ssl certificate path".

And can you please tell me how to ensure my old certificate is valid even after new certificate is imported. IS there any command to check this ?


Regards,
Jaya
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

Yes, that command syntax appears to be correct. (Why do you ask, are you getting an error???)

You can check that the certificate was added by running: keytool -list -keystore "file-name" -storepass "password"
If that doesn't give you enough info, add the -v option for vebose output.

By the way, running 'keytool -help' will explain all of the options.


JBoss In Action
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 85

Hi,

The command works fine in RHEL. third party who gave the certificate asked us ensure old certificate(along with new one) is also valid at our end after new one is imported. I thoought there will be some command to validate this.

Regards,
Jaya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Immport SSL Certificate in RHEL using keytool