Skip to Main Content

Enterprise Manager

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Securing 12c OMS error - Invalid padding string (or incorrect password)

Gbenga AjakayeSep 8 2016 — edited Oct 21 2016

Working on securing OEM and Agents ports with Third party certificate. Agents were deployed successfully and functioning. Has anyone seen this error before? Particularly the part aboutoracle.security.crypto.asn1.ASN1FormatException: oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)? Some of the error that I got also mentioned something about SYSMAN password is NULL. I was able to check and make sure that sysman password is right.

I've check the Admin Server to make sure it's up..

$ emctl status oms -details and confirmed that AdminServer is indeed up.

Connecting over t3s to: hostname.localdomain.com/7102 using id: weblogic

2016-09-07 12:35:16,760 [main] INFO  mas.CredStoreUtil logp.251 - getCredential : Got creds for mapName -EM keyName - REPOS_DETAILS

2016-09-07 12:35:19,116 [main] INFO  util.EmctlUtil logp.251 - Failed to get repos connection using info from AdminServer. Ignoring the exception: ORA-01005: null password given; logon denied

2016-09-07 12:35:20,169 [main] ERROR oms.SecureOMSCmds processSecureOMS.980 - Unable to connect to repository

java.sql.SQLException: ORA-01005: null password given; logon denied

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)

        at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:600)

        at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:445)

        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)

        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)

        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:380)

        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:760)

I've check the certificate and everything looks fine.

2016-09-08  [main] INFO  oms.SecureOMSCmds validateExtWallet.2034 - Validating if user cert for hostname.localdomain.us exists in external wallet /usr/src/app/oracle/12c4

2016-09-08  [main] ERROR oms.SecureOMSCmds processSecureOMS.1655 - Securing of OMS failed with following error:

java.io.IOException: oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)

        at oracle.security.pki.OracleWallet.open(Unknown Source)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.validateExtWallet(SecureOMSCmds.java:2036)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.processSecureOMS(SecureOMSCmds.java:1032)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.main(SecureOMSCmds.java:668)

Caused by: oracle.security.crypto.asn1.ASN1FormatException: oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)

        at oracle.security.crypto.cert.PKCS12Safe.input(PKCS12Safe.java:210)

        at oracle.security.crypto.cert.PKCS12Safe.<init>(PKCS12Safe.java:119)

        at oracle.security.crypto.cert.PKCS12.input(PKCS12.java:179)

        at oracle.security.crypto.cert.PKCS12.<init>(PKCS12.java:122)

        at oracle.security.pki.OracleKeyStoreSpi.engineLoad(Unknown Source)

        at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)

        at oracle.security.pki.OracleSecretStore.load(Unknown Source)

        at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)

        ... 4 more

2016-09-08 [main] ERROR oms.SecureOMSCmds main.699 - Securing OMS failed : oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)

java.io.IOException: oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)

        at oracle.security.pki.OracleWallet.open(Unknown Source)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.validateExtWallet(SecureOMSCmds.java:2036)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.processSecureOMS(SecureOMSCmds.java:1032)

        at oracle.sysman.emctl.secure.oms.SecureOMSCmds.main(SecureOMSCmds.java:668)

Caused by: oracle.security.crypto.asn1.ASN1FormatException: oracle.security.crypto.core.CipherException: Invalid padding string (or incorrect password)

        at oracle.security.crypto.cert.PKCS12Safe.input(PKCS12Safe.java:210)

        at oracle.security.crypto.cert.PKCS12Safe.<init>(PKCS12Safe.java:119)

        at oracle.security.crypto.cert.PKCS12.input(PKCS12.java:179)

        at oracle.security.crypto.cert.PKCS12.<init>(PKCS12.java:122)

        at oracle.security.pki.OracleKeyStoreSpi.engineLoad(Unknown Source)

        at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)

        at oracle.security.pki.OracleSecretStore.load(Unknown Source)

        at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)

        ... 4 more

This post has been answered by I_____O_____I on Sep 13 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2016
Added on Sep 8 2016
2 comments
3,057 views