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? >