- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem using curl to access vendor's secure trans...
Operating System - HP-UX
1752794
Members
6531
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2007 05:47 AM
тАО10-17-2007 05:47 AM
Trying to set up secure transfer to pull from vendor's secure transfer site. Using Curl 7.15.2 on hp-ux 11.11.
My command is like this:
curl --trace mytrace.out -u myname:mypass https://xx.xx.xx.xx
(where I am supplying our actual username and password and xx.xx.xx.xx = their secure transfer site)
Getting this response:
curl: (51) SSL: certificate subject name 'secureftp.theirname.com' does not match target host name 'xx.xx.xx.xx'
(where xx.xx.xx.xx = their address, same one I supplied in my curl command).
Also, if I use dig to lookup their name, I get back the correct ip address. But if I lookup the ip address, I get no answer.
It seems to me this is saying their name information is not defined properly in internet nameservers, and they need to get that corrected.
But if I use internet explorer on my pc, I can connect.
So, am I doing something wrong or can work around it in my Curl command somehow?
My command is like this:
curl --trace mytrace.out -u myname:mypass https://xx.xx.xx.xx
(where I am supplying our actual username and password and xx.xx.xx.xx = their secure transfer site)
Getting this response:
curl: (51) SSL: certificate subject name 'secureftp.theirname.com' does not match target host name 'xx.xx.xx.xx'
(where xx.xx.xx.xx = their address, same one I supplied in my curl command).
Also, if I use dig to lookup their name, I get back the correct ip address. But if I lookup the ip address, I get no answer.
It seems to me this is saying their name information is not defined properly in internet nameservers, and they need to get that corrected.
But if I use internet explorer on my pc, I can connect.
So, am I doing something wrong or can work around it in my Curl command somehow?
Solved! Go to Solution.
- Tags:
- curl
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2007 06:08 AM
тАО10-17-2007 06:08 AM
Re: problem using curl to access vendor's secure transfer site
ok, well, if I use --insecure switch in my curl command, I get a connection.
I'm not sure of the advisability of doing that in my production program. Comments on that?
- John
I'm not sure of the advisability of doing that in my production program. Comments on that?
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2007 09:14 AM
тАО10-17-2007 09:14 AM
Solution
You get that message because you're not telling curl to connect to their name. You're telling curl to connect to an IP, so it expects to see a certificate for the IP address. Assuming that the name on the certificate is right, you should be able to get rid of the message by connecting to https://secureftp.theirname.com instead of to the IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2007 10:11 AM
тАО10-17-2007 10:11 AM
Re: problem using curl to access vendor's secure transfer site
Ah, OK. Thanks. Now I get a connection when specifying the name, and don't need to use --insecure.
I was using ip addr because that was all they gave me. I only discovered the name when I successfully connected to the ip addr from my internet explorer.
I was using ip addr because that was all they gave me. I only discovered the name when I successfully connected to the ip addr from my internet explorer.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP