<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hello Norm,
</div>
<div class="default-style">
</div>
<div class="default-style">
thanks, that did it.
</div>
<div class="default-style">
</div>
<div class="default-style">
</div>
<div class="default-style">
Marten
</div>
<blockquote type="cite">
<div>
Norm Green via Glass <<a href="mailto:glass@lists.gemtalksystems.com">glass@lists.gemtalksystems.com</a>> hat am 23.10.2023 15:15 CEST geschrieben:
</div>
<div>
</div>
<div>
</div>
<div>
I don't have Zinc loaded so I can't try this, but....
</div>
<div>
</div>
<div>
You have to tell OpenSSL where the list of certificates is on your
</div>
<div>
system. On Ubuntu it's /etc/ssl/certs. Once you know that then run this
</div>
<div>
code before creating the socket:
</div>
<div>
</div>
<div>
GsSecureSocket useCACertificateDirectoryForClients: '/etc/ssl/certs'.
</div>
<div>
</div>
<div>
See the example code in GsSecureSocket class >> httpsClientExample.
</div>
<div>
</div>
<div>
Norm Green
</div>
<div>
</div>
<div>
</div>
<div>
On 10/23/2023 4:45 AM, Jupiter Jones via Glass wrote:
</div>
<blockquote type="cite">
<div>
Good question :) I’m sure I’ve done this, but I can find any code examples. Hopefully someone else will chime in and enlighten us.
</div>
<div>
</div>
<blockquote type="cite">
<div>
On 23 Oct 2023, at 10:19 pm, Marten Felddtmann <<a href="mailto:m@feldtmann.online">m@feldtmann.online</a>> wrote:
</div>
<div>
</div>
<div>
That would be a nice solution for the first attempts ... But, what if I want to enable that verification ?
</div>
<div>
</div>
<div>
Marten
</div>
<div>
</div>
<div>
On 23.10.23 13:13, Jupiter Jones wrote:
</div>
<blockquote type="cite">
<div>
Hi Marten,
</div>
<div>
</div>
<div>
Try:
</div>
<div>
</div>
<div>
GsSecureSocket disableCertificateVerificationOnClient.
</div>
<div>
</div>
<div>
Then your connection should work.
</div>
<div>
</div>
<div>
Cheers,
</div>
<div>
</div>
<div>
Jupiter
</div>
<div>
</div>
<blockquote type="cite">
<div>
On 23 Oct 2023, at 8:52 pm, Marten Felddtmann via Glass <<a href="mailto:glass@lists.gemtalksystems.com">glass@lists.gemtalksystems.com</a>> wrote:
</div>
<div>
</div>
<div>
Hey,
</div>
<div>
</div>
<div>
when doing some experiments with an external system I had to call the external system - on my home machine all stuff is http and localhost, so no problems ... but then I moved it to the internet system to play there I ran into a problem I never thought of - all https requests a failing.
</div>
<div>
</div>
<div>
</div>
<div>
I can choose all possible Gemstone version 3.6.x and try to get the content of a https call and it always fails. Does anyone knows HOW to do a https request in Gemstone ?
</div>
<div>
</div>
<div>
</div>
<div>
| aZnClient |
</div>
<div>
</div>
<div>
aZnClient := ZnClient new.
</div>
<div>
aZnClient
</div>
<div>
beOneShot;
</div>
<div>
url: '<a href="https://gemtalksystems.com'" target="_blank" rel="noopener">https://gemtalksystems.com'</a> ;
</div>
<div>
method: #GET ;
</div>
<div>
execute
</div>
<div>
</div>
<div>
results into:
</div>
<div>
</div>
<div>
</div>
<div>
a SecureSocketError occurred (error 2755), socket error , secureConnect failed, error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1921:
</div>
<div>
</div>
<div>
</div>
<div>
Any concrete ideas ?
</div>
<div>
</div>
<div>
</div>
<div>
Marten
</div>
<div>
</div>
<div>
_______________________________________________
</div>
<div>
Glass mailing list
</div>
<div>
<a href="mailto:Glass@lists.gemtalksystems.com">Glass@lists.gemtalksystems.com</a>
</div>
<div>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank" rel="noopener">https://lists.gemtalksystems.com/mailman/listinfo/glass</a>
</div>
</blockquote>
</blockquote>
<div>
</div>
</blockquote>
<div>
_______________________________________________
</div>
<div>
Glass mailing list
</div>
<div>
<a href="mailto:Glass@lists.gemtalksystems.com">Glass@lists.gemtalksystems.com</a>
</div>
<div>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank" rel="noopener">https://lists.gemtalksystems.com/mailman/listinfo/glass</a>
</div>
</blockquote>
<div>
</div>
<div>
_______________________________________________
</div>
<div>
Glass mailing list
</div>
<div>
<a href="mailto:Glass@lists.gemtalksystems.com">Glass@lists.gemtalksystems.com</a>
</div>
<div>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank" rel="noopener">https://lists.gemtalksystems.com/mailman/listinfo/glass</a>
</div>
</blockquote>
</body>
</html>