super happy to see this, hopefully it will when i need it. Going to look this up. Wondering if it will be super hard to create certificate and make it work on localhost sockets.
On Tue, Jan 26, 2021 at 2:26 PM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > “Using tCertificate and tKey” compiles but I don’t know how to test. It > does seem like the parser doesn’t recognize those keywords. > > Sent from my iPhone > > > On Jan 26, 2021, at 2:13 PM, Bernard Devlin via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Thanks for the suggestion Erik, but I don't see from that how one > specifies > > the certificate. > > > > Regards, Bernard > > > >> On Tue, Jan 26, 2021 at 6:03 PM Erik Beugelaar via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >> > >> Maybe this: > >> > >> secure socket "livecode.com:443" > >> > >> Examples: > >> > >> https://livecode.fandom.com/wiki/Secure_socket > >> > >> -----Original Message----- > >> From: use-livecode <use-livecode-boun...@lists.runrev.com> On Behalf Of > >> Bernard Devlin via use-livecode > >> Sent: dinsdag 26 januari 2021 16:40 > >> To: How to use LiveCode <use-livecode@lists.runrev.com> > >> Cc: Bernard Devlin <bdrun...@gmail.com> > >> Subject: Re: open secure socket... using certificate > >> > >> I did. I tried these too: > >> > >> *open* *secure* socket to "localhost:443" using certificate tc and key > tk > >> > >> *open* *secure* socket to "localhost:443" without verification using > >> certificate tc and key tk > >> > >> When the above lines are entered in the script editor they are flagged > as > >> being syntax errors. In both cases it is what comes after "certificate" > >> that is flagged as a syntax error (flagged as: missing "," near "tc"). > >> There seems to be no combination of command options that works with > >> certificates. > >> > >> The fact that the Dictionary has zero information about what is expected > >> for certificate/key was not a good sign, which is why I searched the > >> archive. I just went to have a look at the code on Github and I can > seen > >> nothing to suggest that "using certificate and key" is implemented. > >> > >> The server and client certificate are working in a browser, so the > problem > >> is definitely on the LC side. > >> > >> On Tue, Jan 26, 2021 at 2:34 PM Brian Milby via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >> > >>> Did you try with “and key tKey”... it does not look like that part is > >>> optional. > >>> > >>> Sent from my iPhone > >>> > >>>> On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode < > >>> use-livecode@lists.runrev.com> wrote: > >>>> > >>>> According to the Dictionary in LC 9.5.1 there is this command: > >>>> > >>>> open secure socket [from [localHostName][:localPort]] [to] socketID > >>>> [with message callbackMessage] [without verification] *[using > >>>> certificate certificate and key key]* > >>>> > >>>> However I can't get it to work. > >>>> > >>>> open secure socket to "localhost:443" using certificate > >>>> > >>>> throws a runtime error "no handler: using" > >>>> > >>>> If I use > >>>> > >>>> open secure socket to "localhost:443" > >>>> > >>>> I get a socket connection, but all the security of a client > >>>> certificate does not work > >>>> > >>>> > >>>> This causes a syntax error in the IDE: > >>>> > >>>> open secure socket to "localhost:443" using certificate tName > >>>> > >>>> Looking through the archives I see that a couple of discussions > >>>> where people were asking about this variant of the "open socket" > >>>> command 5 to 6 years ago, *saying that the "certificate" part has > >>>> not been implemented*, regardless of what the Dictionary says. > >>>> > >>>> Is it really the case that for the past 6 years LC documentation has > >>>> been misleading people concerning the implementation of certificates > >>>> for > >>> secure > >>>> socket connections? > >>>> > >>>> I notice in the Dictionary the entry for "open socket" in the table > >>>> of options for this command has entries for "certificate" and "key", > >>>> but > >>> these > >>>> are both empty. As if these features were meant to be implemented > >>>> but > >>> were > >>>> never implemented and the Dictionary was never updated to remove > >>>> this misleading information. > >>>> > >>>> I just find that hard to believe. > >>>> > >>>> Regards > >>>> > >>>> Bernard > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode@lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode@lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode