File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Issue with a specific CAC card in logging into ProjectForge Webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Issue with a specific CAC card in logging into ProjectForge Webservices" Watch "Issue with a specific CAC card in logging into ProjectForge Webservices" New topic
Author

Issue with a specific CAC card in logging into ProjectForge Webservices

Somasekhara Yarrapureddy
Greenhorn

Joined: Aug 09, 2011
Posts: 1
All,

I have a very strange issue with my CAC card. I wrote small Java program to login into ProjectForge.mil webservice

ICollabNetSoap m_sfSoap = (ICollabNetSoap)
ClientSoapStubFactor​y.getSoapStub(IColla​bNetSoap.class, "https://project.forge.mil/");
String sessionId = m_sfSoap.login("", "");

After entering CAC PIN, it is throwing exception saying that "javax.net.ssl.SSLHa​ndshakeException: Received fatal alert: unsupported_certificate"

More specific exception is:

Caused by: java.security.Invali​dKeyException: Unsupported key type: SunPKCS11-MyPKCS11 RSA private key, 2048 bits (id 39632224, token object, sensitive, unextractable)


Note: I have asked three of my co-workers to run the same program using their CAC's and seems to be everything works fine. I have already downloaded latest JCE policy .jar files and installed them under ../lib/secuirity

Any input is greatly appreciated,
Soma Reddy

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with a specific CAC card in logging into ProjectForge Webservices