From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM, PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:15e8:: with SMTP id p8mr5565088qkm.27.1630812040346; Sat, 04 Sep 2021 20:20:40 -0700 (PDT) X-Received: by 2002:a05:6902:1201:: with SMTP id s1mr7807629ybu.432.1630812039962; Sat, 04 Sep 2021 20:20:39 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 4 Sep 2021 20:20:39 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=216.215.19.89; posting-account=XGCYegoAAADY19DGgU_zTfTSbVlfUJ_a NNTP-Posting-Host: 216.215.19.89 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <30267029-4433-4f45-a409-debf68fb27ccn@googlegroups.com> Subject: AWS.SMTP.Client secure mode From: "philip...@gmail.com" Injection-Date: Sun, 05 Sep 2021 03:20:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62633 List-Id: The recent thread about sending email with AWS.SMTP.Client reminded me I ne= ed to finish working on a package I wrote a while ago that uses AWS.SMTP.Cl= ient. I have just been passing Server_Name =3D> "localhost", Port =3D> 25,= and Secure =3D> False to AWS.SMTP.Client.Initialize, to use a local mail r= elay, and that has worked fine. I'm now trying to get secure communication to my email account mailserver w= orking (SSL on port 465). Something deep in the bowels of AWS wants cert.p= em to exist in the directory I run my program from, but it doesn't seem to = be the cert.pem I retrieved from the mail server with openssl. My program dies with: raised AWS.SMTP.SERVER_ERROR : raised AWS.NET.SOCKET_ERROR : The requested = data were not available. immediately after reading the cert.pem file I fetched with openssl. Has anyone ever got secure and authenticated AWS.SMTP.Client working? And= if so, how did you do it?