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 » Updating unrestricted policy files in IIB

Post new topic  Reply to topic
 Updating unrestricted policy files in IIB « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Fri Jul 17, 2015 1:46 am    Post subject: Updating unrestricted policy files in IIB Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

We have a scenario wherein we need to do a encryption/decryption of the data sent to a provider. The algorithm to be used is "AES" (for encrypt-decrypt) / "RSA" for signing and verifying.

The key size is expected to be 256 but when we try to decrypt using 256 bit AES key, we are getting an error "java.security.InvalidKeyException: Illegal key size".

When we tried fixing this, it i suggested to update the Java security policy files in JRE (local_policy.jar). But since Broker uses its JRE, there are some default set of policy files which when modified throws run-time exceptions.

Have anyone come across this issue earlier and what could be the work around?
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Fri Jul 17, 2015 2:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Platform?

Error message?

What does the encryption?
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
ganesh
PostPosted: Mon Jul 20, 2015 2:38 pm    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

There is a local_policy.jar in the broker installation directory- \IBM\MQSI\{broker/iib version}\jre17\lib\security, did you replace that file?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 21, 2015 4:14 am    Post subject: Re: Updating unrestricted policy files in IIB Reply with quote

Grand High Poobah

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

kash3338 wrote:
Hi,

We have a scenario wherein we need to do a encryption/decryption of the data sent to a provider. The algorithm to be used is "AES" (for encrypt-decrypt) / "RSA" for signing and verifying.

The key size is expected to be 256 but when we try to decrypt using 256 bit AES key, we are getting an error "java.security.InvalidKeyException: Illegal key size".

When we tried fixing this, it i suggested to update the Java security policy files in JRE (local_policy.jar). But since Broker uses its JRE, there are some default set of policy files which when modified throws run-time exceptions.

Have anyone come across this issue earlier and what could be the work around?

Well I am surprised that an illegal key size guides you to the policy files...
It is very clearly an ILLEGAL KEY SIZE.

So before you do anything else:
What is the key size of the cert you are trying to use?
What is the full name of the ciphersuite / cipherspec you are trying to use?
_________________
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 » Updating unrestricted policy files in IIB
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.