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 Installation/Configuration Support » SSL access from Java

Post new topic  Reply to topic Goto page Previous  1, 2
 SSL access from Java « View previous topic :: View next topic » 
Author Message
xxx
PostPosted: Sat May 22, 2004 10:36 pm    Post subject: Reply with quote

Centurion

Joined: 13 Oct 2003
Posts: 137

Above step isgiving error: An error occurred while processing X509 certificates.

there is a bug in gsktool kit , using the IE explorer open the cert you received form the CA authority and then Export that to a file.

Now you will be able to add/receive the certificate on HP box
Back to top
View user's profile Send private message
techno
PostPosted: Sun May 23, 2004 9:23 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I didn't get it. Could you pl explain?

Creating all those certificates on hp-ux.


Also, I am not so clear where is this happening: CA signing on (Personal)certificate?
Back to top
View user's profile Send private message
harwinderr
PostPosted: Mon May 24, 2004 1:41 am    Post subject: Reply with quote

Voyager

Joined: 29 Jan 2002
Posts: 90

Well, when you are developing a production application, you might not want to purchase a true digital certificate until after you are done testing the application.
So, there is no need to create a CA certificate. Just create and use a self-signed certificate for testing purposes.

On HP-UX, if you have the gsk6cmd running then issue the following commands:

1.
Code:
$ gsk6cmd -keydb -create -db /var/mqm/qmgrs/hsr1/ssl/key.kdb -pw password -type cms -expire 180 -stash


This will create a key.kdb key database file in the directory /var/mqm/qmgrs/hsr1/ssl

2. Now create a self-signed certificate

Code:
$ gsk6cmd -cert -create -db /var/mqm/qmgrs/hsr1/ssl/key.kdb -pw password -label ibmwebspheremqhsr1 -dn "CN=SH,O=OSH,C=CSH" -size 1024


Note the name of the label, its "ibmwebspheremq" followed by the name of the queue manager (hsr1 in this case)

3. Extract the certificate

Code:
$ gsk6cmd -cert -extract -db /var/mqm/qmgrs/hsr1/ssl/key.kdb -pw password -label ibmwebspheremqhsr1 -target cert.arm


Now, you need to FTP this "cert.arm" to the Windows box, and issue the following command

1.
Code:
$ keytool -import -alias wmq -keystore keyStore -file cert.arm


This wil create a trusted store called keyStore in the current directory and add cert.arm as a trusted certificate


That is all!!

For some of your other queries

Quote:
SelfSigned Certificate that gets created by gsk6cmd- Is ita CA certificate?


No, they are not CA certificates, they are just self-signed certificates generated by gsk6cmd for testing purposes.

Quote:
Then where are the public and private keys? There has to be some key with qmgr, right!


The public/private keys are in the key database file (key.kdb) and yes, there has to be some key associated with the qmgr. This is specified by naming the label of the certificate by "ibmwebspheremq" followed by the qmgr name.

Hope this will help. All the best
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
techno
PostPosted: Mon May 24, 2004 2:46 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Above is fine. Thank you.

I am getting the error while adding personal cert (Not self-signed) to key database..

Code:
On HP-UX
// Adding Personal Certificate to KeyStore
gsk6cmd -cert -receive -file MyPersCert -db /var/mqm/qmgrs/QMGR/ssl/key.kdb

Above step isgiving error: An error occurred while processing X509 certificates.

Also, How is CA linked to above personal certificate? Personal Certificate shold be signed by CA? (MYCA)(so that client will assume that server is valid)
Back to top
View user's profile Send private message
harwinderr
PostPosted: Tue May 25, 2004 9:55 pm    Post subject: Reply with quote

Voyager

Joined: 29 Jan 2002
Posts: 90

You dont need to add the self-signed personal certificate to the key database file, because when you create the personal certificate using gsk6cmd, it is added to db file.

If you are trying to add a personal certifiacate received from a CA, then check the format of the certificate.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
xxx
PostPosted: Thu May 27, 2004 6:02 am    Post subject: Reply with quote

Centurion

Joined: 13 Oct 2003
Posts: 137

gsk6cmd -cert -receive -file MyPersCert -db /var/mqm/qmgrs/QMGR/ssl/key.kdb

sorry for the late reply , You are not able to receive the cert from CA ,
the work around for this is to open the cert you got from the CA on windows , i.e just double click it on you desktop , and once you do this there is an option to export it to a file, so export it do some temp.arm

Now you will be able to recevie the cert on HP machine, This is only for CA certs not selfsinged ones
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » SSL access from Java
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.