# Error Using CW's IAWSS3Client Class

**URL:** <https://clarionhub.com/t/error-using-cws-iawss3client-class/6385>\
**Category:** questions\
**Tags:** ssl, class\
**Created:** [July 14, 2023, 4:54pm UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385 "2023-07-14T16:54:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [July 14, 2023, 4:54pm UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/1 "2023-07-14T16:54:19Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [July 14, 2023, 5:06pm UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/2 "2023-07-14T17:06:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [July 14, 2023, 5:23pm UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/3 "2023-07-14T17:23:43Z")

</div>

Thanks just sent email

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [July 14, 2023, 6:31pm UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/4 "2023-07-14T18:31:21Z")

</div>

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](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/b/bf421b40b141666aee83381922df4124de5f1b9b.png)

---

<div class="post-metadata">

**Author:** ![StuAndrews](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@StuAndrews](https://clarionhub.com/u/StuAndrews)\
**Post date:** [September 1, 2023, 1:34am UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/5 "2023-09-01T01:34:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [September 1, 2023, 1:54am UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/6 "2023-09-01T01:54:15Z")

</div>

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._

---

<div class="post-metadata">

**Author:** ![StuAndrews](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@StuAndrews](https://clarionhub.com/u/StuAndrews)\
**Post date:** [September 1, 2023, 2:28am UTC](https://clarionhub.com/t/error-using-cws-iawss3client-class/6385/7 "2023-09-01T02:28:04Z")

</div>

Rightio, good stuff. Thanks Kevin!
