?
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
Medium Priority
?
7,346 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
The Internet has made sending and receiving information online a breeze. But there is also the threat of unauthorized viewing, data tampering, and phoney messages. Surprisingly, a lot of business owners do not fully understand how to use security t…
The viewer will learn how to count occurrences of each item in an array.
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…
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

839 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