Layer7 API Management

  • 1.  API Explorer error

    Posted Jul 12, 2016 03:54 PM

    Hello There,

    I have integrated API Gateway v9.0 with API Portal v3.5. As part of the Gateway implementation we have internally virtualized the same Gateway to be used as dev-api.domain.com and test-api.domain.com using the global policy as

    well as assigning the CNAME at the DNS server level. Portal integration is also successful and able to sync APIs and plans. But the problem is when testing an API from API Explorer, it is not working and throwing an error as

     

    {  "error": "Error occurred submitting request to service endpoint: hostname in certificate didn't match: <dev-api.domain.com> !=<nonprod_api_gateway.domain.com>" }

    { "error": "Error occurred submitting request to service endpoint: hostname in certificate didn't match: <test-api.domain.com> !=<nonprod_api_gateway.domain.com>" }

     

     

    Is there a workaround for this.

     

    Thank you!



  • 2.  Re: API Explorer error
    Best Answer

    Broadcom Employee
    Posted Jul 13, 2016 12:04 AM

    This error is an SSL issue in the communication between the portal API Explorer and the target API endpoint on the SSG. It is saying that the certificate presented by the target server doesn't match the hostname.

    There is no setting for alter this.



  • 3.  Re: API Explorer error

    Broadcom Employee
    Posted Sep 06, 2016 02:06 AM

    There could be a work around, if the 2 hostnames can be resolved to the same IP, on gateway, you can use different private key to different port. (Tasks -> Manage listen ports -> SSL/TLS settings -> Server Private Key) 

    for example, 8443 install private key with CN=dev-api.domain.com and 9443 install private key with CN=test-api.domain.com