FTPS with Session Re-Assumption - Are there any Go packages?

We are trying to connect and upload a file to FTPS server with Session Re-Assumption.
Unfortunately we are unable to find any package support that.

Do you have any suggestions?

Ex:
\
package main
import (
“crypto/tls”
“fmt”
“log”
“os”
“time”
github.com/secsy/goftp
)
func main() {
ftpServer := “” //ftp server ftps.abc.com
ftpUser := “” // ftp user name
ftpPassword := “” //ft password
ftpFolder := “” //Folder in ftpserver where file needs to be uploaded.
ftpFile := “” //File location which needs to be uploaded.
start := time.Now()
var (
tlsConfig *tls.Config = &tls.Config{
InsecureSkipVerify: true,
ClientAuth: tls.RequestClientCert,
}
)
config := goftp.Config{
User: ftpUser,
Password: ftpPassword,
ConnectionsPerHost: 10,
Timeout: 30 * time.Second,
Logger: os.Stderr,
TLSConfig: tlsConfig,
//DisableEPSV: true,
//ActiveTransfers: true,
//TLSMode: goftp.TLSImplicit,
}
client, err := goftp.DialConfig(config, ftpServer)
if err != nil {
panic(err)
}
var file *os.File
file, err = os.Open(ftpFile)
defer file.Close()
if err != nil {
panic(err)
}
//b, _ := ioutil.ReadFile(ftpFile)
err = client.Store(fmt.Sprintf(ftpFolder, “/”, ftpFile), file)
if err != nil {
fmt.Println(err)
}
elapsed := time.Since(start)
log.Printf(“Process took %s”, elapsed)
os.Exit(0)
}
\\

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.