API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Certificate Validation in API Connect

    Posted 08/29/22 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

    Posted 09/01/22 12:12 PM
    Edited by Jeroen Willems 09/01/22 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
    ------------------------------