Re: Using the SSL module.

Trilok Tourani <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <CA+9+xUYfys7pkUmtTqXLb9ubcBAaKYpOokOE4=a5aWyfbqcX9g@mail.gmail.com>
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.

Regards
Trilok Tourani

On Tue, Jun 23, 2015 at 12:13 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.
>
> Regards
> Trilok Tourani
>
> On Tue, Jun 23, 2015 at 12:01 PM, Chris Angelico <[email protected]> wrote:
>
>> On Tue, Jun 23, 2015 at 4:21 PM, Trilok Tourani
>> <[email protected]> wrote:
>> > The code that you have written in your previous mail, starts listening
>> for
>> > the ports, but when I connect a sock to 127.0.0.1:1234, it doesn't
>> seem to
>> > be calling the accept or http_query functions. It just hangs there.
>> > (sock->connect("127.0.0.1",1234);)
>>
>> Yep. It doesn't call those until key exchange etc is completed. Try
>> pulling up a terminal and running:
>>
>> openssl s_client -connect 127.0.0.1:1234
>>
>> That should show a quick dump of the certificate, and then give you a
>> telnet-like connection.
>>
>> ChrisA
>>
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.