File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Use JSSE for CDC to connect to SSL web site but InvalidKeySpecException(Unknown key spec) occur Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Use JSSE for CDC to connect to SSL web site but InvalidKeySpecException(Unknown key spec) occur" Watch "Use JSSE for CDC to connect to SSL web site but InvalidKeySpecException(Unknown key spec) occur" New topic
Forums: Sockets and Internet Protocols Java Micro Edition
Author

Use JSSE for CDC to connect to SSL web site but InvalidKeySpecException(Unknown key spec) occur

Ryan Woon
Greenhorn

Joined: Jun 14, 2014
Posts: 2
I have a java program that is in Windows Mobile 6, and I use CrE-ME™ v4.12 jvm to run the program. Java version is 1.3 with JSSE 1.0.3 for CDC 1.0.2.

I use following code to connect to a secure site.
(This website is using Comodo Free SSL Certificate: 2048-bit, 128/256 bit encryption)



When I try to get the OutputStream



Following error occurs:



Please help me to solve this issue.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
An obsolete Java version and crypto library running as part of an obsolete Java mobile API via a hack on an obsolete mobile OS - tall order . I have added this post to the Java ME forum as well.

My starting approach might be to determine which ciphers are supported by the server (using a tool like SSLScan), and then read through the JSSE 1.0 documentation to see which ciphers that supports - thereby determining whether there is any overlap.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use JSSE for CDC to connect to SSL web site but InvalidKeySpecException(Unknown key spec) occur