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 » WebSphere Message Broker (ACE) Support » pkcs12

Post new topic  Reply to topic
 pkcs12 « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Thu Jun 30, 2011 2:02 pm    Post subject: pkcs12 Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

trying to import signed cert to broker keystore. the commands in the infocenter looks like it only supports pkcs12 format. Can anyone confirm this please?
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Thu Jun 30, 2011 2:41 pm    Post subject: Re: pkcs12 Reply with quote

Grand High Poobah

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

paustin_ours wrote:
trying to import signed cert to broker keystore. the commands in the infocenter looks like it only supports pkcs12 format. Can anyone confirm this please?

What commands are you looking at?
gskit, both for command line and gui will support pcks12, cms, jks for the keystore and X509 as cert to import...
True you may also use the native format of the store...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Fri Jul 01, 2011 4:29 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

WMB7 has no such limitation.

Code:

# Associate keystore and truststore to broker instance.
mqsichangeproperties MB7_AEF -o BrokerRegistry -n brokerKeystoreFile -v "C:\Program Files\IBM\MQSI\7.0\jre16\lib\security\cacerts"
mqsichangeproperties MB7_AEF -o BrokerRegistry -n brokerTruststoreFile -v "C:\Program Files\IBM\MQSI\7.0\jre16\lib\security\trustcerts"

# import SSL certificate into truststore.
keytool -import -alias someserver -file somecertificate.cer -keystore "C:\Program Files\IBM\MQSI\7.0\jre16\lib\security\trustcerts" -keypass changeit

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Jul 01, 2011 4:59 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
WMB7 has no such limitation.


Thank you for sharing. Regretably the OP hasn't indicated which version he's using.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Fri Jul 01, 2011 6:04 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

I am running 7.0.0.2 broker on aix.

if you look at the below link

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ap34020_.htm

***********************
Importing a certificate for production use
Import a personal certificate from a certificate authority for production use.

Issue the following command:
gsk7cmd -cert -import
-db pkcs12_file_name
[-pw pkcs12_password]
-label label
-type pkcs12
-target keystore_name
[-target_pw keystore_password]

For example:
gsk7cmd -cert -import
-db SOAPListenerCertificate.p12
-label soaplistener
-type pkcs12
-target myBrokerKeystore.jks
-target_pw myBrokerKpass
A password is required to access this key database.
Please enter a password:
*******

the above command clearly states that for an import the type needs to be
pkcs12 or is that not true?
Back to top
View user's profile Send private message Yahoo Messenger
lancelotlinc
PostPosted: Fri Jul 01, 2011 6:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

keytool is the key management tool that comes with the JVM. You can use any key management tool you want. If your chosen tool does not support the features or functions you want, don't use it. keytool works well, and supports many features and functions without the limitations you describe.

There are two stores in use by broker. A keystore which identifies who you are (thanks mqjeff). And a truststore that contains certificates from servers you trust.

It is not true that the only format supported by WMB is pkcs12. keytool supports many formats.

http://download.oracle.com/javase/1.3/docs/tooldocs/win32/keytool.html
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
paustin_ours
PostPosted: Fri Jul 01, 2011 6:17 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Is it safe to say that gskkit tool only supports pkcs12?
Back to top
View user's profile Send private message Yahoo Messenger
lancelotlinc
PostPosted: Fri Jul 01, 2011 6:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You may see the answer here:

http://hursleyonwmq.wordpress.com/2007/07/30/using-websphere-mq-explorer-with-ssl/
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Jul 01, 2011 8:23 pm    Post subject: Reply with quote

Grand High Poobah

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

paustin_ours wrote:
Is it safe to say that gskkit tool only supports pkcs12?


No. It is safe to say that pks12 is one among the multiple formats supported by the tool.
_________________
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 » WebSphere Message Broker (ACE) Support » pkcs12
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.