Re: Help Understanding curl and tls/ssl certificates

Michael Newman via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
Ah, there’s just one more thing.

After I fixed the url scheme on the Pies, I got this error:

* Connected to mgnewman.com (192.254.225.101) port 22 (#0)
* SSH MD5 fingerprint: 4b17cad500a405c850e118c1deec0f96
* SSH host check: 2, key: <none>

So, I used ssh-keyscan to update my known_hosts file. Now it works. But I still have to wonder how it worked before? I guess because curl was using ftp rather than sftp.

The mind boggles a bit.

> On Jun 20, 2024, at 2:55 PM, Dan Fandrich via curl-users <[email protected]> wrote:
> 
> On Thu, Jun 20, 2024 at 02:36:27PM +0700, Michael Newman via curl-users wrote:
>> The URL I was using is this: host=sftp://ftp.mgnewman.com/~/public_html/
>> 
>> If I use this instead: host=sftp://mgnewman.com/~/public_html/
>> 
>> Then the error message ("curl failed to verify the legitimacy of the server….”)
>> goes away.
>> 
>> I don’t understand why I was able to use the “wrong” url scheme for years
>> without ever getting an error message. What could have caused the error to just
>> suddenly appear the day before yesterday?
> 
> Actually, I just realized I read the port number in the error message wrong
> (port 22 is ssh/sftp but I read 21 which is ftp/ftps). So, the command was
> actually using the right protocol.  curl will talk ftp to a host name starting
> with ftp if a scheme isn't given, which is what I thought might be happening.
> By providing the sftp: scheme curl will stop guessing and do sftp.
> 
> The fact that you got different results at different times implies that they
> were doing some kind of work on the servers. But maybe they were working on the
> ftp servers and didn't expect sftp clients to be using them. In any case, I'm
> glad you got the problem solved.
> 
> Dan
> -- 
> Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
> Etiquette:   https://curl.se/mail/etiquette.html

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
smime.p7s (application/pkcs7-signature, 1.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.