Bootstrap FreeKB - Broadcom API Gateway - Delete Identity Provider certificate using the Gateway Migration Utility
Broadcom API Gateway - Delete Identity Provider certificate using the Gateway Migration Utility

Updated:   |  Broadcom API Gateway articles

This assumes you are familiar with the basic usage of the Gateway Migration Utility. Following is an example of how to list a user certificate in an Identity Provider. In this example, 0000000000000000fffffffffffffffe is the ID of the Identity Provider and a51237cc16c31b69edd66bb1e7243219 is the ID of the user.

/path/to/GatewayMigrationUtility.sh restman
-host apig.example.com
-port 8443
-username john.doe
-password f5VPX0yUJPg.m4BrjdgMv84UgktddJD3xA
-method GET
-path '1.0/identityProviders/0000000000000000fffffffffffffffe/users/a51237cc16c31b69edd66bb1e7243219/certificate'

 

Or the -argFile option can be used, to reduce the number of options that are used on the command line.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/identityProviders/0000000000000000fffffffffffffffe/users/a51237cc16c31b69edd66bb1e7243219/certificate'

 

Something like this should be returned.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Item xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Name>CN%3Dwww.example.com%2COU%3DExample%2CO%3DExample%2CL%3DAppleton%2CST%3DWI%2CC%3DUS Certificate Data</l7:Name>
    <l7:Id>a51237cc16c31b69edd66bb1e7243219</l7:Id>
    <l7:Type>USERCertificateData</l7:Type>
    <l7:TimeStamp>2020-08-29T20:43:37.349-05:00</l7:TimeStamp>
    <l7:Link rel="template" uri="https://api.example.com:8443/restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users/template"/>
    <l7:Link rel="list" uri="https://api.example.com:8443/restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users"/>
    <l7:Resource>
        <l7:CertificateData>
            <l7:IssuerName>CN%3Dwww.example.com%2COU%3DExample%2CO%3A+Example%2CL%3DAppleton%2CST%3DWI%2CC%3DUS</l7:IssuerName>
            <l7:SerialNumber>16213933083534032896</l7:SerialNumber>
            <l7:SubjectName>CN%3Dwww.example.com%2COU%3DExample%2CO%3DExample%2CL%3DAppleton%2CST%3DWI%2CC%3DUS</l7:SubjectName>
            <l7:Encoded>MIIJIjCCCAqgAwIBAgIJAOEDdjwAAAAAMA0GCSqGSIb...</l7:Encoded>
        </l7:CertificateData>
    </l7:Resource>
</l7:Item>

 

Here is how you would delete the Identity Provider users certificate.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method DELETE
-path '1.0/identityProviders/0000000000000000fffffffffffffffe/users/a51237cc16c31b69edd66bb1e7243219/certificate'



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter fd4539 in the box below so that we can be sure you are a human.