Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

MID Server Mutual Authentication Error

pranavagarw
Tera Expert

Hello, 
I am setting up the mutual authentication for the mid servers, basically migrating from basic auth.

As suggested in the documentation (https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/product/mid-server/task/insta...)

We have successfully enabled the first step of mutual auth. But, after that when we are adding Adding new certificate by running the command suggested in given doc, bin/scripts/manage-certificates.bat -a <alias> <fileName>

It is throwing errors like, 

ERROR (main) [KeystoreInstallAPI:266] Could not find valid private key
java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: Invalid RSA private key
at java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:253)

ERROR (main) [KeystoreInstallAPI:552] Could not install custom certificate
java.lang.Exception: Could not extract private key from PEM bundle. Cannot continue with installation
at com.service_now.mid.keystore.api.KeystoreInstallAPI.installPEMBundle(KeystoreInstallAPI.java:124)

### Error : Could not install custom certificate


What can we do to fix this?

Thank You

1 REPLY 1

MrigaA
Tera Contributor

Hi @pranavagarw , were you able to resolve this?