Re: Using the SSL module.
Trilok Tourani <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CA+9+xUbS985tpoFLQyuzr8Ui4YF9=tYhstzWkspNJj5MAOQAew@mail.gmail.com> |
Also, In pike 8, my ssl object keeps showing SSL.File(Stdio.File("socket", "
runescape.com:443", 777 /* fd=10 */), SSL.ClientConnection(handshaking))
Like it is stuck on the handshaking phase.
any ideas on how to overcome it?
Regards
Trilok Tourani
On Fri, Jun 26, 2015 at 3:57 PM, Trilok Tourani <[email protected]>
wrote:
> The ssl->write("...") keeps returning 0 (ie. it is in the handshake
> phase), and when I wait for it, the sock's fd becomes -1 and I am unable to
> write again.
>
> Also, my server on 127.0.0.1:1999, when i connect to it using openssl,
> wireshark shows normal TCP packets, while when I openssl to gideon.rosuav,
> it shows TLSv1.2 packets. But in both, I can see the master-key,
> certificates, etc. Does this mean that there is some fault with my SSL port?
>
> Regards
> Trilok Tourani
>
> On Tue, Jun 23, 2015 at 12:21 PM, Chris Angelico <[email protected]> wrote:
>
>> On Tue, Jun 23, 2015 at 4:43 PM, Trilok Tourani
>> <[email protected]> wrote:
>> > okay got the certificate information. How do I proceed in connecting to
>> this
>> > port with pike? The tried it the same way you mentioned in your first
>> mail.
>> > But when I do ssl->write("....."); it just returns 0 every time. but
>> when I
>> > run sock->write("...."); it gives me some data.
>> >
>>
>> You'll want to connect, then establish an SSL.File (or SSL.sslfile)
>> around that socket. Once you have that, it should all work. See the
>> earlier emails for examples, or you may have one already.
>>
>> ChrisA
>>
>>
>