Using CW’s IAWSS3Client Class
The connect is OK, but recently we have been getting errors about not using TLS > 1.1 (1.2)
trying to upload the file
client.UploadFile(...)
>> 90:InvalidTlsVersion:**Amazon S3 will stop supporting TLS 1.0 and TLS 1.1 connect**
How can we change this - I could not see anything in the Class code
ClaAwsS3.inc \ .clw
client &IAWSS3Client
client &= ConnectToS3(S3Key,S3Secret,errorinfo)
IF client &= NULL THEN
rtn = 99
enterlog(ALL('-',80))
enterlog('ERROR: Could not connect to AWS S3. Error: '& CLIP(errorinfo ))
errorinfo = 'ERROR: ' & rtn & ':' & CLIP(client.ErrorCode()) & ':' & client.Error()
enterlog('ERROR: Could not connect to AWS S3. Error: '& CLIP(errorinfo ))
enterlog('ERROR: Could not connect to AWS S3. File : '& CLIP(FileToUpload))
enterlog(ALL('-',80))
ELSE
rtn = client.UploadFile(FileToUpload,'cmsi-data/envelopes',FileOnly(FileToUpload),0)
IF rtn THEN
enterlog(ALL('-',80))
errorinfo = 'ERROR: ' & rtn & ':' & CLIP(client.ErrorCode()) & ':' & client.Error()
enterlog('ERROR: Could not upload to AWS S3. Error: '& CLIP(errorinfo ))
enterlog('ERROR: Could not upload to AWS S3. File : '& CLIP(FileToUpload))
enterlog(ALL('-',80))
ELSE
!enterlog('File uploaded to AWS S3. Success: '& CLIP(errorinfo))
END