Go back to bouncycastle 1.49 which works in OSGi.