Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / December 2003

Tip: Looking for answers? Try searching our database.

Can't create an object of cipher for RSA

Thread view: 
Peter Zentzis - 13 Dec 2003 09:58 GMT
Hello,
I use the Cryptix provider. I want to create an object in order to
decrypt/encrypt with RSA. Crptix32 provides RSA, but I can't use the
getInstance-method the create an RSA-Cipher.
The code line: Cipher rsaCipher=Cipher.getInstance("RSA",p);// p is the
provider Cryptix
The error message: java.lang.SecurityException: The provider Cryptix may not
be signed by a trusted party
I don't know what to do.. Any suggestions?

Best regards

Peter
JK - 16 Dec 2003 09:31 GMT
Since JDK 1.4 (I think), Sun JCE requires providers to be signed with a
private key that belongs to a certificate issued by Sun. When you add
another provider to the security manager Sun JCE and the provider
authenticate each other that way.

The disadvantage of Cryptix is, that it is not signed with an
appropriate certificate from Sun. That way, it only works outside the
sandbox, i.e. as an application without the java.lang.Security
instantiated.

Alternatives:
- use another provider, such as BouncyCastle or SunRsaSign, with proper
certificates issued by Sun
- use a clean-room implementation of the JCE, like the one from
BouncyCastle, that does not check signatures on JCE providers.
- keep outside the sandbox. Does not work for applets.

Regards
JK.

> Hello,
> I use the Cryptix provider. I want to create an object in order to
[quoted text clipped - 9 lines]
>
> Peter


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.