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
4,566 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now