Is anyone able to successfully call pub.security:encrypt or pub.security:decrypt successfully for PGP encryption?
I am using webMethods 10.15, with the latest set of fixes as of 11/07/2025, and I'm running into different errors, such as:
java.lang.reflect.InvocationTargetException: org/bouncycastle/openpgp/operator/bc/BcPublicKeyKeyEncryptionMethodGenerator
Full value: java.lang.ClassNotFoundException: org.bouncycastle.openpgp.operator.bc.BcPublicKeyKeyEncryptionMethodGenerator
at com.wm.app.b2b.server.ServerClassLoader.findClass(ServerClassLoader.java:818)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
2025-11-05 17:17:21 EST [ISS.0095.0042I] (tid=1904) The ERRSTACKTRACE field in a WMERROR audit record was truncated. CONTEXTID: 3ce6e20d-b626-41dc-8a8f-d44ad32912cb. MSGID: f177214d-f2e2-c8c4-6ef9-72a3be9cf057. Full value: java.security.NoSuchProviderException: No such provider: BC
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:639)
at org.bouncycastle.jcajce.util.NamedJcaJceHelper.createCipher(NamedJcaJceHelper.java:47)
at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createCipher(Unknown Source)
at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createStreamCipher(Unknown Source)
at org.bouncycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder$MyPGPDataEncryptor.<init>(Unknown Source)
at org.bouncycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder.build(Unknown Source)
at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown Source)
at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown Source)
at pub.security.PGPCryptography.encrypt(PGPCryptography.java:105)
at pub.securityimpl.encrypt(securityimpl.java:323)
Is there a proper set of BC and webM libraries and version, plus any configuration eg. java.security, that would get these two services to work?
I have tried both in FIPS and non FIPS mode as well.
Thank you!
Mei See.