Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

openssl s_client -connect https://xyz.com/monitor.html:443 gives getaddrinfo: Servname not supported for ai_socktype connect:errno=0

Posted on 2011-02-28
3
5,274 Views
Last Modified: 2012-06-27
Hello,
I have to get a certificate from an external organizations server to connect my soap client to it. Usng the command

openssl s_client -connect https://xyz.com/monitor.html:443


gives me the following error,
getaddrinfo: Servname not supported for ai_socktype
connect:errno=0


Now :-
1. Is there any other way to get the certificate (Putting the address on the browser does not help)
2. Am I using the connect command wrongly, Is there any other way to use the above command

Thank you for your help.

0
Comment
Question by:ezdrt
  • 2
3 Comments
 
LVL 12

Expert Comment

by:zappafan2k2
ID: 35003750
Do you have to open that specific page?  Presumably the host should serve the same certificate for any connection.

Have you tried
openssl s_client -connect xyz.com:443

Open in new window

?
0
 

Accepted Solution

by:
ezdrt earned 0 total points
ID: 35141883
Actually,
The host had issues with its own certificate system. So did all the debugging on our side. I also used curl to test it and found the similar issue. So I would say try a few different ways like I did with

1. Directly php
2. Zend framework
3. OpenSSL
3. Curl

Still do not seem to work then may be its the issue with the client setup.
Thanks expert for the help though
0
 

Author Closing Comment

by:ezdrt
ID: 35174617
There were not enough good solutions and this was kind of a unique issue.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question