Target server is not getting enabled for https urls

I have set https url in the target server with port 443 but while triggering the request it is still coming as http://httpbin.org/get .

I also try to update the target server from Apigee SmartDoc ui and getting the below response:

HTTP/1.1 200 OKAccess-Control-Allow-Headers:originAccess-Control-Allow-Methods:GETAccess-Control-Allow-Origin:*Access-Control-Max-Age:3628800Connection:keep-aliveContent-Length:249Content-Type:application/jsonDate:Tue, 29 Jan 2019 14:49:13 GMTServer:Apigee LB{
  "host": "httpbin.org",
  "isEnabled": true,
  "name": "target2",
  "port": 443,
  "sSLInfo": {
    "ciphers": [],
    "clientAuthEnabled": "false",
    "enabled": "true",
    "ignoreValidationErrors": false,
    "protocols": []
  }
}

Please let me know what to do in this case:

Attaching screenshot of my Targetserver and trace

8079-targetserver.png

8080-trace.png

@Anil Sagar @ Google : Please suggest

Solved Solved
0 3 851
1 ACCEPTED SOLUTION

sidd-harth
Participant V

Can you provide your HTTPTargetConenction config.

Did you add SSLInfo tag?

<HTTPTargetConnection>
        <Properties/>
        <LoadBalancer>
            <Server name="Product-Availability"/>
        </LoadBalancer>
        <Path>/v1/availability</Path>
        <SSLInfo>
            <Enabled>true</Enabled>
        </SSLInfo>
    </HTTPTargetConnection>

Note: In the Edge UI, if <URL> specifies the HTTPS protocol, the UI does not automatically insert the <SSLInfo> block. By default, the value of <Enabled> is true if <URL> specifies HTTPS. However, all the examples below explicitly set the value of <Enabled> to true.

View solution in original post

3 REPLIES 3

sidd-harth
Participant V

Can you provide your HTTPTargetConenction config.

Did you add SSLInfo tag?

<HTTPTargetConnection>
        <Properties/>
        <LoadBalancer>
            <Server name="Product-Availability"/>
        </LoadBalancer>
        <Path>/v1/availability</Path>
        <SSLInfo>
            <Enabled>true</Enabled>
        </SSLInfo>
    </HTTPTargetConnection>

Note: In the Edge UI, if <URL> specifies the HTTPS protocol, the UI does not automatically insert the <SSLInfo> block. By default, the value of <Enabled> is true if <URL> specifies HTTPS. However, all the examples below explicitly set the value of <Enabled> to true.

@Siddharth Barahalikar
Thanks for the help , i tried this yesterday it was throwing 503 error. Today i deleted the target server and followed the same step it worked for me .

Step: -

  1. Create Target server from SmartDoc UI which is present in APIGEE Documentation
  2. Addition if SSLInfo tag

@Ankit Dwivedi , check the case of the sslinfo attribute. It should be

"SSLInfo"