Hi,
the context variable
application.certificate.Subject
is working as expected on my end.
can you elaborate how you try to do it?
a quick way to test this is to just create an echo api that returns the client cert subject via a set variable. e.g.
- set-variable:
version: 1.0.0
title: return-cert-subject
actions:
- set: message.body
value: '{"cert-subject" : "$(application.certificate.Subject)"}'
- set: message.status.code
value: 200
- set: message.headers.content-type
value: application/json
cheers,
Jeroen Willems
Integration Designers
------------------------------
jeroen willems
------------------------------
Original Message:
Sent: Sun August 28, 2022 09:31 AM
From: Sadhana Guduru
Subject: Certificate Validation in API Connect
Hi Team,
I am trying to extract OU from incoming consumer certificate in APIC and I am using application.certificate.subject context variable for the same, but when I am trying to test it through Soap Ui by passing the cert in preferences,It returns me null.
Can you please help me with a way to extract OU from incoming consumer certificate.
------------------------------
Gayathri
------------------------------