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=-0.5 required=3.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: AWS.SMTP.Client secure mode Date: Tue, 7 Sep 2021 08:21:56 +0200 Organization: A noiseless patient Spider Message-ID: References: <30267029-4433-4f45-a409-debf68fb27ccn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 7 Sep 2021 06:21:56 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="7b9155a1e2e1e41f6d3b869b749b072e"; logging-data="10767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QBm8la1zTp4yxXhT1r6Rd" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cancel-Lock: sha1:daFcpqKxoczntLyiNuoujU7dCjA= In-Reply-To: Content-Language: sv Xref: reader02.eternal-september.org comp.lang.ada:62663 List-Id: Den 2021-09-07 kl. 04:20, skrev philip...@gmail.com: > On Monday, September 6, 2021 at 2:26:30 AM UTC-7, björn lundin wrote: >> Den 2021-09-05 kl. 05:20, skrev philip...@gmail.com: >> >>> >>> Has anyone ever got secure and authenticated AWS.SMTP.Client working? And if so, how did you do it? >>> >> Yes. >> I use Amazon as mailer - like this. Shortened version so it might not >> compile. I think you need the Ada.Directories.Set_Directory statement >> just as I need it. >> >> in the directory I set , I have the cert.pem I'd like to use > > Is cert.pem a client certificate that will be passed to the server, or is it a server certificate the client uses to validate the server? > Actually - lookin closer - it is the cert.pem that was distributed with AWS 1.2. That is longtime ago... Obviously Amazon does not care. Auth is then via the lines Auth : aliased constant SMTP.Authentication.Plain.Credential := SMTP.Authentication.Plain.Initialize ("AKFCAWS_IS_A_MAILSERVERT", "BOYbIsome-chars-from-amazomFDWW"); I could not find it on github now - so I mailed you the one I got -- Björn