Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Errors during Signature verification and Encryption with WAS: msg#00213

apache.webservices.fx.devel

Subject: Re: Errors during Signature verification and Encryption with WAS

+1 go for it.

-- dims

On 9/19/05, Granqvist, Hans
<hgranqvist-0nFLJxsdniVWk0Htik3J/w@xxxxxxxxxxxxxxxx> wrote:
>
> I saw this was solved in another way, but you're right, IBM's JDK doesn't
> implement "SHA1PRNG", but
> rather "IBMSecureRandom". The best way to solve this error is to change the
> code to:
>
> try{
> ...getInstance("SHA1PRNG")...
> } catch (NSAE e) {
> try {
> ...getInstance("IBMSecureRandom")...
> }
> ... and so on
>
> Anyone mind me updating WSS4J in this way?
>
> Hans
>
>
> ________________________________
> From: Juan Cervera
> [mailto:Juan.Cervera-+BhwrIlM2uLby3iVrkZq2A@xxxxxxxxxxxxxxxx]
> Sent: Friday, September 16, 2005 4:03 AM
> To: wss4j-dev-28n8OjmUYWfNLxjTenLetw@xxxxxxxxxxxxxxxx
> Subject: Errors during Signature verification and Encryption with WAS
>
>
>
> Hi,
>
> I'm having a couple of error with WAS 5.1 and WSS4J.
>
> The first one, produces an error in the WAS logs but all works fine ...
> quite interesting. The error happens during signature verification:
>
> [9/16/05 11:13:24:859 BST] 5616f41a SystemErr R
> java.security.NoSuchAlgorithmException: SHA1PRNG
> SecureRandom not available
> [9/16/05 11:13:24:859 BST] 5616f41a SystemErr R at
> java.security.Security.getAlgClassName(Security.java(Compiled
> Code))
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr R at
> java.security.Security.getAlgClassName(Security.java:598)
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr R at
> java.security.Security.getImpl(Security.java:1079)
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr R at
> java.security.SecureRandom.getInstance(SecureRandom.java:241)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at at
> org.apache.ws.security.message.token.UsernameToken.<clinit>(UsernameToken.java:72).null(Unknown
> Source)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at
> org.apache.ws.security.WSSecurityEngine.verifyXMLSignature(WSSecurityEngine.java:509)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:320)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:245)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at
> org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:156)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr R at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>
> but the regular log says:
> [9/16/05 11:13:24:785 BST] 5616f41a CryptoFactory I
> org.apache.ws.security.components.crypto.CryptoFactory
> Using Crypto Engine
> [org.apache.ws.security.components.crypto.Merlin]
> [9/16/05 11:13:24:968 BST] 5616f41a Reference I
> org.apache.xml.security.signature.Reference Verification
> successful for URI "#id-21909041"
>
> And in fact the message gets answered without problems afterwards ... I have
> read that this error may be due to IBM having their own version of the
> SHA1PRNG algorithm, which seems to be called "IBM SHA1PRNG". Not sure if
> there is a way though to get rid of this error message.
>
>
> The other error I have is more serious as is stopping me to perform
> encryption:
>
> WSHandler: Encryption: error during message
> processingorg.apache.ws.security.WSSecurityException: An
> unsupported signature or encrypti
> on algorithm was used; nested exception is:
>
> org.apache.xml.security.encryption.XMLEncryptionException:
> Paddding: ISO10126Padding not implemented
> Original Exception was javax.crypto.NoSuchPaddingException:
> Paddding: ISO10126Padding not implemented; nested exception is:
> org.apache.ws.security.WSSecurityException: WSHandler:
> Encryption: error during message
> processingorg.apache.ws.security.WSSecurityEx
> ception: An unsupported signature or encryption algorithm was used; nested
> exception is:
>
> org.apache.xml.security.encryption.XMLEncryptionException:
> Paddding: ISO10126Padding not implemented
> Original Exception was javax.crypto.NoSuchPaddingException:
> Paddding: ISO10126Padding not implemented
>
> Not sure what this ISO10126Padding is and if it is again a problem with
> IBM's Java 1.4 and if I can sort it out in some way or not. Any ideas?
>
> Any help is welcomed
>
> Thanks,
>
> Juan


--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation