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,518 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to count occurrences of each item in an array.

730 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