API Connect

 View Only
  • 1.  Certificate Validation in API Connect

    Posted Mon August 29, 2022 08:34 AM
    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
    ------------------------------


  • 2.  RE: Certificate Validation in API Connect

    IBM Champion
    Posted Thu September 01, 2022 12:12 PM
    Edited by Jeroen Willems Thu September 01, 2022 12:14 PM
    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:
                        version1.0.0
                        titlereturn-cert-subject
                        actions:
                          - setmessage.body
                            value'{"cert-subject" : "$(application.certificate.Subject)"}'
                          - setmessage.status.code
                            value200
                          - setmessage.headers.content-type
                            valueapplication/json
    cheers,
    Jeroen Willems
    Integration Designers


    ------------------------------
    jeroen willems
    ------------------------------