Layer7 API Gateway: Decoding a certificate thumbprint
book
Article ID: 194964
calendar_today
Updated On:
Products
CA API GatewayAPI SECURITYCA API Gateway Precision API Monitoring Module for API Gateway (Layer 7)CA API Gateway Enterprise Service Manager (Layer 7)STARTER PACK-7CA Microgateway
Issue/Introduction
When using the variable certificate.thumbprintSHA1 set by Extract Attributes from Certificate assertion, the result is base64 encoded.
The value presented in the manage certificate dialog however is hex-encoded. How can this value be encoded/decoded to match?
Environment
Release : 9.3
Component : API GATEWAY
Resolution
The base64 encoded value will need to be decoded as an octet-stream using the Encode/Decode Data assertion.
Once this value is obtained it can then be hex-encoded using the same assertion as seen below.