File: libbcprov-java.README.Debian

package info (click to toggle)
bouncycastle 1.60-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 64,568 kB
  • sloc: java: 636,276; sh: 1,944; xml: 1,599; makefile: 22
file content (45 lines) | stat: -rw-r--r-- 1,493 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
libbcprov-java for Debian
=========================

In order to use this library, add the following to your classpath:

    /usr/share/java/bcprov.jar

Alternatively, the jar can be installed as an optional package by linking it
from $JAVA_HOME/lib/ext.


Installing Bouncy Castle as a Security Provider
-----------------------------------------------

From the BouncyCastleProvider javadocs:

To add the provider at runtime use:

    import java.security.Security;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;

    Security.addProvider(new BouncyCastleProvider());

The provider can also be configured as part of your environment via static
registration by adding an entry to the java.security properties file (found in
$JAVA_HOME/jre/lib/security/java.security, where $JAVA_HOME is the location of
your JDK/JRE distribution). You'll find detailed instructions in the file but
basically it comes down to adding a line:

    security.provider.<n>=org.bouncycastle.jce.provider.BouncyCastleProvider

Where <n> is the preference you want the provider at (1 being the most
preferred).


Bouncy Castle as a Trusted Security Provider
--------------------------------------------

The Debian release of Bouncy Castle can not currently be used as a trusted
security provider, as the jar has not been signed by a trusted CA. This is a
non-issue for free JVMs, as they don't currently have a notion of trusted
CAs.


 -- Charles Fry <debian@frogcircus.org>, Tue Apr 25 19:07:32 2006