Federation :: SmKeyDataBase : invalid pad byte
search cancel

Federation :: SmKeyDataBase : invalid pad byte

book

Article ID: 49139

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Description:

Trying to import my certificate in the SmKeyDatabase I get the following error:

command:

smkeytool -addprivkey -alias myalias -keycertfile "c:\myalias.p12" -password "password"

return message:

"An error occured while processing the contents of PKCS12 store. Message: com.rsa.jsafe.JSAFE_PaddingException: Could not perform the unpadding : invalid pad byte. "

How can I fix it ?

Solution:

Check if you have a defaultenterpriseprivatekey defined in the SmKeyDatabase by running:

smkeytool.bat -listcerts

If there is none, then run the following command to add your certificate with the defaultenterpriseprivatekey:

smkeytool.bat -addprivkey -alias defaultenterpriseprivatekey -keycertfile "c:\myalias.p12" -password "password"

Environment

Release:
Component: SMPLC