Unable to enroll CA API Gateway to CA Developer Portal: Connection timed out (Connection timed out)
search cancel

Unable to enroll CA API Gateway to CA Developer Portal: Connection timed out (Connection timed out)

book

Article ID: 223226

calendar_today

Updated On:

Products

CA API Gateway CA API Developer Portal

Issue/Introduction


Enrolling the CA API Gateway with CA API Developer Portal may result in error :  Unable to enroll:  Connection timed out (Connection timed out)





Environment

Release : All releases

Component : CA API Gateway and CA API Developer Portal

Cause

A firewall rule may be blocking a successful enrollment 

Resolution

Use a curl command to test whether the Portal enrollment URL can be resolved from Gateway :

curl -vk https://enroll.<portal_domain>:9443/enroll/<tenant_name>?sckh=t9MW2AZVsMylWrR25GRFK0oAXz29kP1234sfc4cOe3w

note: replace the URL "https://enroll.<portal_domain>:9443/enroll/<tenant_name>?sckh=t9MW2AZVsMylWrR25GRFK0oAXz29kP1234sfc4cOe3w" by the one generated in Portal to enroll a Proxy/Gateway

the output should be like the following :

* About to connect() to enroll.<portal_domain> port 9443 (#0)
*   Trying 10.0.0.0...
* Connected to enroll.<portal_domain> (10.0.0.0) port 9443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* NSS: client certificate not found (nickname not specified)
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
*       subject: CN=pssg
*       start date: Dec 28 16:15:25 2020 GMT
*       expire date: Dec 28 16:15:25 2023 GMT
*       common name: pssg
*       issuer: CN=pssg
> GET /enroll/<tenant_name>?sckh=t9MW2AZVsMylWrR25GRFK0oAXz29kP1234sfc4cOe3w HTTP/1.1
> User-Agent: curl/7.29.0
> Host: enroll.<tenant_name>:9443
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 12
< Date: Wed, 01 Sep 2021 19:40:03 GMT
< Server: CA-API-Gateway/9.0
<
* Connection #0 to host enroll.<portal_domain> left intact

If the curl command responds with Connection timed out then a firewall rule may be an issue

The curl command helped to resolve the problem as this was likely a firewall configuration issue