Error Using CW's IAWSS3Client Class

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

I think, if you contact support, they have an updated DLL. Not 100% sure.

Thanks just sent email

Yes, They sent me 3 updated DLLs and it seems to work so far - will monitor all weekend before updating our other 6 systems.

image

1 Like

Hi @KevinErskine ,

Just wondering how this went for you?

I’m in the process of adding S3 integration and am wondering whether to utilise these.

Many thanks.

I actually took over a project from a programmer who left a company and he had this already implemented.

They upload thousands of PDFs to the AWS servers every day and have had almost no problems.

We found that the dlls were not TLS 1.2 compliant and SV sent me the new ones and we have had no issues.

Kevin

C-415.819.1415
Communication is the key to a successful relationship.

1 Like

Rightio, good stuff. Thanks Kevin!

1 Like