This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Interoperability between WCF and WSIT  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Recently I have been looking for a example or for a tutorial that would describe the secured communication between two Web Service technologies; WFC(server) and WSIT(client). So far I have tried to establish a .X509 secured communication, first by creating certificate with MS-tools, registering it to IIS, importing the cert with a keytool, and finally binding it to WSIT-client via Netbeans WS-configuration tool. So far my attempts to establish the communication have been a failure:

SEVERE: WSS1906: Invalid key provided for encryption/decryption.
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
...
Exception in thread "DataHandler.getInputStream" com.sun.xml.wss.impl.XWSSecurityRuntimeException: Unable to calculate cipher value as invalid key was provided
at com.sun.xml.ws.security.opt.impl.enc.CryptoProcessor.encryptData(CryptoProcessor.java:290)
at com.sun.xml.ws.security.opt.impl.enc.CryptoProcessor.encrypt(CryptoProcessor.java:143)
at com.sun.xml.ws.security.opt.impl.util.CVDataHandler.writeTo(CVDataHandler.java:69)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
at javax.activation.DataHandler$1.run(DataHandler.java:251)
at java.lang.Thread.run(Thread.java:619)
...
Caused by: java.security.InvalidKeyException: Illegal key size or default parameters


Altrough Im not explaining the very details of the problem, I would appreciate if you would any resources, suggestions, how to progress in establishing the interoperability if we are establishing WFC(server) and WSIT(client) type of communication in a secured way.

Thanks!
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Take a look at this thread - it looks similar to your problem:
http://old.nabble.com/problem-connecting-to-a-wcf-service-with-based-on-x509-certificate-td18845593.html
Best wishes!
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Example for interoperability between WSIT and Wcf using X.509 security:

http://webservices20.blogspot.com/2010/01/axis2-wcf-interoperability.html
 
Valtter Rajakannas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So far I have taken a small step further by replacing Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in JRE.

At the moment .NET-WS returns message "javax.xml.ws.soap.SOAPFaultException: An error occurred when verifying security for the message" by sending the SOAP-message above. I was comparing this message with a .NET-client message. Clearly there wasn't any major discrepancies in the structure so i'll keep on examining the implementation of the certificates.





 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!