Re: https login

Rick Weinbender <[email protected]>
Newsgroups gmane.mail.sqwebmail
Message-ID <[email protected]>
Brian Candler wrote:

> On Wed, Jan 14, 2004 at 01:58:34PM -0600, Rick Weinbender wrote:
> > I tried it just now with only the
> > --enable-https=login
> > I get an initial login screen, but when I enter username and password,
> > it just takes me to a blank web page.
>
> Does 'view document source' on this page show anything?
>
> > >>Try this:
> > >>$ openssl s_client -connect www.yourdomain.com:443
> > >>GET /cgi-bin/sqwebmail?index=1 HTTP/1.0
> > >>Host: www.yourdomain.com
> > >> <blank line>
> > This is probably a stupid question, but where does the above code go?
>
> At the command line ('$' was meant to be a shell prompt)
>
> If you really want to see what your webserver is doing, then you bypass the
> web client and drive it directly; HTTP is a text protocol after all, easy
> for humans to write and read.
>
> For normal HTTP, you telnet to port 80. For HTTPS, you use s_client to set
> up an encrypted connection to port 443.
>
> Brian.

********************************************
> I get an initial login screen, but when I enter username and password,
> it just takes me to a blank web page.

>>Does 'view document source' on this page show anything?
It shows this below:
********
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>SqWebMail - Copyright 1999-2003 Double Precision, Inc.</title>
  <link rel="stylesheet" type="text/css" href="/webmail/sqwebmail.css" />
  <meta name="GENERATOR" content="amaya 8.0, see http://www.w3.org/Amaya/" />
  <meta name="MSSmartTagsPreventParsing" content="TRUE" />
  <!-- $Id: index.html,v 1.19 2003/08/12 15:16:29 mrsam Exp $ -->
</head>

<frameset rows="0,*" border="0">
  <frame src="http://www.mydomain.com/cgi-bin/sqwebmail?empty=1" scrolling="no"
noresize="noresize"
  frameborder="0" />
  <frame src="http://www.mydomain.com/cgi-bin/sqwebmail?noframes=1"
noresize="noresize" frameborder="0" />
  <noframes>
    <body>
    <h1>SqWebMail - Copyright 1999-2003 Double Precision, Inc.</h1>

    <p>Your web browser does not support frames. Although SqWebMail uses
    frames, 100% of functionality is available to web browsers that do not
    support frames.</p>

    <p><a href="http://www.mydomain.com/cgi-bin/sqwebmail?noframes=1">Enter
without frame support.</a></p>
    </body>
  </noframes>
</frameset>
</html>
*********
>>$ openssl s_client -connect www.yourdomain.com:443
When I try this(above) at the prompt. I get this error message:
connect: Connection refused
connect: errno=29

Thanks,
-Rick
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.