liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.51k stars 267 forks source link

VS Code Update 1.40 breaks FTP "secure":true setting #687

Open jwcharp opened 4 years ago

jwcharp commented 4 years ago

This is the message that gets outputed

Error: 1053326776:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:568:

lucasalima commented 4 years ago

I'm facing this issue as well. Someone can help?

valeriterziev commented 4 years ago

I solved my issue by entering exact TLS version:

    "secure": true,
    "secureOptions": {
        "rejectUnauthorized": false,
        "secureProtocol": "TLSv1_method"
    },

More possible protocol values are in nodejs docs: https://nodejs.org/api/tls.html For "secureProtocol" dot "." should be replaced with "_". Ex.: "TLSv1_2_method"

Protocol versions are:

'SSLv3'
'TLSv1'
'TLSv1.1'
'TLSv1.2'
'TLSv1.3'