Wrox Programmer Forums
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2011, 10:52 AM
Authorized User
 
Join Date: Jun 2011
Posts: 38
Thanks: 9
Thanked 0 Times in 0 Posts
Default Installing the BC provider?

I'm trying to install BC in JBoss.

1) I modified the java.security file to add-
security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
security.provider.2=com.ibm.crypto.provider.IBMJCE
security.provider.3=com.ibm.security.jgss.IBMJGSSP rovider
security.provider.4=com.ibm.security.cert.IBMCertP ath
security.provider.5=com.ibm.security.sasl.IBMSASL
security.provider.6=org.bouncycastle.jce.provider. BouncyCastleProvider

Then by default BC wasn't still installed in JBoss. Although if I ran in Eclipse standalone program, it was installed and it worked.

2) Then I dropped the bcprov-ext-jdk15-146.jar jar file in here C:\Program Files\Java\jre1.5.0_17\lib\ext, then it started working in JBoss.

Is this method safe to do installation, I'm confused here whether to use bcprov-ext-jdk15-146.jar or bcprov-jdk15-146.jar?

I guess, ext provider provides IDEA implementation. To be on safe side, I made my mind to use only bcprov-ext-jdk15-146.jar.

Is this assumption correct?
 
Old June 30th, 2011, 09:33 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Yes, the ext directory is the right place to put the provider in a situation like this. It will force it to be loaded by the system class loader.

The assumption about the ext provider is correct, you only need to use it if you're expecting you might use IDEA further down the track.

Regards,

David
The Following User Says Thank You to dgh For This Useful Post:
boy18nj (July 1st, 2011)
 
Old July 1st, 2011, 02:29 PM
Authorized User
 
Join Date: Jun 2011
Posts: 38
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Does it have anything to do with SSL encryption which is used by default in JBoss server or any J2EE server?
 
Old July 2nd, 2011, 01:32 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Only provider ordering might affect this, and even then only if the underlying code is not specifically specifying which provider to use.

Regards,

David





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between lightweight BC api and the other normal API? boy18nj BOOK: Beginning Cryptography with Java 2 June 19th, 2011 08:13 PM
Installing 2.0 framework after installing 4.0 mat41 ASP.NET 4 General Discussion 0 October 12th, 2010 09:09 PM
Appendix C, Using BC API For EC rayback_2 BOOK: Beginning Cryptography with Java 5 April 30th, 2008 10:41 PM
Help with membership Provider... slim182 ASP.NET 2.0 Basics 1 February 19th, 2007 10:15 AM
msdasql.1 as a provider LiQUiD VB Databases Basics 2 February 9th, 2005 09:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.