Certificate export using graphman
search cancel

Certificate export using graphman

book

Article ID: 422408

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Exporting certificate using thumbprint option did not give any result for graphman export.

graphman export --gateway test1 --using trustedCertByThumbprint --variables.thumbprintSha1 C2TXXXXXXXXXXXXXXX1748

Environment

API Gateway

Resolution

The graphman export using thumbprint option needs the thumbprint in base64 encoded format. The HEX format of SHA1 in the cert needs to be converted to base64 encoded format before using it in the export command.

Convert the HEX to base64 encoded format:

echo <thumbprint text in hex> | xxd -r -p | base64

Then use the output of the above command in graphman command:

graphman export --gateway test1 --using trustedCertByThumbprint --variables.thumbprintSha1 SrHy7954Jkund99dmlieynkR=