You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Richard Snowden <ri...@gmail.com> on 2014/11/22 01:27:57 UTC

Karaf 3.0.x and Bouncy Castle

I do some encryption stuff and use Bouncy Castle as the provider. In one of
my classes I do:

    static {
            Security.addProvider(new BouncyCastleProvider());
        }

This works fine when running standalone - but when I deploy it to Karaf I
get (of course) an "unresolved constraint" exception.

I can install Bouncy Castle via "install mvn:org.bouncycastle/bcprov..." -
but not sure if that's the correct way to do?

Re: Karaf 3.0.x and Bouncy Castle

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

normally, bouncycastle should be in the system package (so 
startup.properties).
So, your way should be fine too.

Regards
JB

On 11/22/2014 01:27 AM, Richard Snowden wrote:
> I do some encryption stuff and use Bouncy Castle as the provider. In one
> of my classes I do:
>
>      static {
>              Security.addProvider(new BouncyCastleProvider());
>          }
>
> This works fine when running standalone - but when I deploy it to Karaf
> I get (of course) an "unresolved constraint" exception.
>
> I can install Bouncy Castle via "install mvn:org.bouncycastle/bcprov..."
> - but not sure if that's the correct way to do?
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 3.0.x and Bouncy Castle

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Please take a look at [1] to get more details about how to add security providers for Karaf

[1]http://karaf.apache.org/manual/latest/users-guide/security.html
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-11-22, at 上午8:27, Richard Snowden wrote:

> I do some encryption stuff and use Bouncy Castle as the provider. In one of my classes I do:
> 
>     static {
>             Security.addProvider(new BouncyCastleProvider());
>         }
> 
> This works fine when running standalone - but when I deploy it to Karaf I get (of course) an "unresolved constraint" exception.
> 
> I can install Bouncy Castle via "install mvn:org.bouncycastle/bcprov..." - but not sure if that's the correct way to do?
>