Seth, given the issue is cfftp and sftp--and since the failure arose on your update of cf--there was indeed a change in October regarding sftp, in cf2021 update 17 and cf2023 update 11.
You say you were on cf2021 update 11 (which is from Oct 2023, btw) and per the technote for update 17, there was mention in the bug fixes section of a change to sftp which called for some to need to add either or both of a pair of jvm args to the startup of cf, to maintain backward compatibility:
-Dcoldfusion.sftp.fingerprint=md5 -Dcoldfusion.sftp.enable-ssh-rsa=TRUE
I'd recommend you try at least the second. And I realize that your error message might make it seem this is NOT the solution. If you're game to give it a try, let us know how it goes.
Of course, changing the jvm args is something to be very careful about. You can use the cf admin "java and jvm" page and its java args box--but these are to be added to that long list of them (like at the end), but NOT ON A NEW LINE. If you get this wrong, cf won't start.
Indeed, as you may know, that page changes the underlying jvm.config file, in cfusion/bin (or [instancename]/bin. You should make a backup of that first. You can also just edit it directly, and its args line.
Finally, I was thrown by your original note saying you "have a scheduled task that uses certificate file to connect". I didn't see that being about sftp. Perhaps Dave felt the same, thus his suggestion about the cert for a cfhttp or similar calls: as you may know, scheduled tasks run like a cfhttp.
Again, though, since you feel this failed upon updating cf (alone, right?), that suggests this other matter. Let us know how it goes. It's something I've long been wanting to explore more to understand it better, but for now I wanted to propose at least this for you.
@Charlie Arehartand @Dave Watts
I was able to get it figured out. Thank you both for your help!!!!
Been killing me all weekend.
I had to add these flags to jvm.config file
-Dcoldfusion.sftp.enable-ssh-rsa=TRUE -Dcoldfusion.sftp.fingerprint=md5 -Djsch.cipher=aes128-cbc