ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Security » Exception while Importing a certificate into the cacertsfile

Post new topic  Reply to topic
 Exception while Importing a certificate into the cacertsfile « View previous topic :: View next topic » 
Author Message
SANTYP
PostPosted: Mon Aug 30, 2010 1:56 am    Post subject: Exception while Importing a certificate into the cacertsfile Reply with quote

Centurion

Joined: 27 Mar 2007
Posts: 142

Hi Masters,

I am trying to Configure HTTPS in my local broker..
below is the process I followed.. but struck in b/w ... you guys help much appreciated....... plz help me out...

I generated a .keystore file using below commands.

"%MQSI_FILEPATH%\jre\bin\keytool" -genkey -keystore <Location of the file to be generated> -storepass <password> -alias mykey

Then cofigured my broker to use SSL on specific port using below commands

1. mqsichangeproperties BKR -b httplistener -o HTTPSConnector -n keystoreFile -v <File path>

2. mqsichangeproperties BKR -b httplistener -o HTTPSConnector -n keystorePass -v <password>

3. mqsichangeproperties BKR -b httplistener -o HTTPSConnector -n port -v <port number>

4. mqsichangeproperties BKR -b httplistener -o HTTPConnector -n enableSSLConnector -v true.

after this
I tried to Importing a certificate into the cacerts file
I used below command to achive this..

C:\Program Files\IBM\MQSI\7.0\jre16\lib\security>"%MQSI_FILEPATH%\jre16\bin\keyt
ool" -import -alias mykey -file "C:\Program Files\IBM\MQSI\7.0\jre16\lib\securit
y\cacerts" -keystore cacerts -storepass changeit

but getting below exception


keytool error: java.lang.Exception: Input not an X.509 certificate

my env: Broker toolkit version 7.0

Thanks in advance..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 30, 2010 9:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Moved to security forum

So what did you do? Do you even know in what format the certificate was sent to you? (pem, x509, binary etc ...)?
Most CA's are able to generate a cert in x509 format. Request for your cert to be in X509 format...
What does the cert look like? If not given the right parms some CA's generate the cert with some additional text prepended or appended. You may have to get rid of that for the keystore to be able to import the cert...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » Exception while Importing a certificate into the cacertsfile
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.