The safex command is failing with the JAWSCreate.xml: Unable to write P12 certificate [filename: JAWS.p12]
search cancel

The safex command is failing with the JAWSCreate.xml: Unable to write P12 certificate [filename: JAWS.p12]

book

Article ID: 372560

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

The import of the AAI access policies to eEM server using safex command is failing with the error message below.

 

/opt/CA/SharedComponents/EmbeddedEntitlementsManager/bin $ ./safex -u <eEM user> -p <eEM user password> -f  JAWSCreate.xml
Setting Translation file:./safex.tr
Setting back end to "localhost"

Setting locale to "en_us"

OK:Successfully Authenticated
OK: action[Attach] with ApplicationInstance label[]
ERROR: [0x34b77140] CertificateWriter::writeToP12 : error writing to p12 file
3591 [0x7f3634b77140] ERROR SafeCertificateWriter null - CertificateWriter::writeToP12 - Unable to write P12 certificate [filename: JAWS.p12]. FIPS Mode is OFF.

Environment

Product: Automation Analytics & Intelligence v6.x

Cause

The user that executed the command safex does not have write permission on the /opt/CA/SharedComponents/EmbeddedEntitlementsManager/bin directory.

Resolution

Please make sure that the user that executes the safex command has write permission on the bin directory of the eEM.