[Webtest] webtest https support

Archit P webtest@lists.canoo.com
Thu, 14 Jul 2005 19:44:37 +0530


This is a multi-part message in MIME format.

------_=_NextPart_001_01C5887E.5DC080C0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

hi
=20
Since you have picked this document from the Calypso Gui, so i just
wanted to know if you want HTTPS for the Calypso GUI or Webtest. If you
want it for webtest then you can follow the steps mentioned in the doc.
You can also refer to the Webtest samples inside docs  (as suggested by
Paul).
=20
Regards,
=20
Archit

-----Original Message-----
From: Vikenty Menshutkin [mailto:VikentyMenshutkin@oilspace.com]=20
Sent: Thursday, July 14, 2005 5:33 PM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] webtest https support


thats all that I found:

   HOW TO TEST HTTPS WITH WEBTEST

      Since you will be using Java 1.4.2 and above ( as mentioned in the
installation checklist for Calypso), you need not worry  about the SSL ,
as JSSE is included.         =20

The Java Secure Socket Extension (JSSE) is a set of packages that enable
secure Internet communications. It implements a Java technology version
of Secure Sockets Layer (SSL) and Transport Layer Security (TLS)
protocols. It includes functionality for data encryption, server
authentication, message integrity, and optional client authentication.



Get the server certificate

The server certificate can be downloaded by clicking at the "key lock"
icon at Internet Explorer while having a SSL connection. The icon is
locatetd at the very bottom at the right. The ceritifcate dialogs open
and at "Details" you can click "Copy to File". Here you export the
server certificate as DER encoded X.509 certificate.You can use a name
for it, say, "connection.cer".



Create your server keystore

    We need a keystore containing the server certificate of the server
you want to test. No certificate - no connection.=20

     You create the "trust.keystore" with following command on the
command line.

  keytool -import -storepass together -file connection.cer -keystore
trust.keystore -alias connection=20

Here we had created a keystore with the name "trust.keystore" protected
with the password "together". Into this keystore we import the
certificate "connection.cer" with the alias "together".=20

Now you have a keystore with the name "trust.keystore" with exactly one
server certificate.

Canoo Webtest needs to know that you are going to use SSL. You have to
define the following properties at the start of your webtest script.=20




Property=20

Value=20

What it does?


webtest.connectioninitializer=20

com.canoo.webtest.security.SunJsseBaseConnectionInitializer=20

Tell Canoo Webtest to instantiate SSL connections=20


webtest.truststore.file=20

webtest/certs/trust.keystore (or the location of this keystore)

Tell Canoo Webtest where to look for server certificates=20

Now tell Canoo Webtest about using HTPPS and the port 443 in the config
element.=20

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of Paul King
> Sent: Thursday, July 14, 2005 3:55 PM
> To: webtest@gate2.canoo.com
> Subject: Re: [Webtest] webtest https support
>
>
> Yes, we should fix this.
>
> In the meantime, you can submit a fix for the doc :-) or
> search the mailing list or look at the included examples.
>
> Paul.
>
> Vikenty Menshutkin wrote:
> > So, how can we use webtest without the latest docs?
> >
> >
> >>-----Original Message-----
> >>From: webtest-admin@lists.canoo.com
> >>[mailto:webtest-admin@lists.canoo.com] On Behalf Of Paul King
> >>Sent: Thursday, July 14, 2005 2:37 PM
> >>To: webtest@gate2.canoo.com
> >>Subject: Re: [Webtest] webtest https support
> >>
> >>
> >>https is supported, the doco looks like it needs updating.
> >>
> >>Paul.
> >>
> >>Vikenty Menshutkin wrote:
> >>
> >>>Hi All,
> >>>
> >>>Does any of you guys have some suggestions on how to use
> webtest on
> >>>https protocol? Or, when it will be available?
> >>>(http://webtest.canoo.com/webtest/manual/syntax.html#config
> >>
> >>- I cant
> >>
> >>>imagine that 2 simple protocols is enough!!)
> >>>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest=20



MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that =
of Mastek Limited, unless specifically indicated to that effect. Mastek Lim=
ited does not accept any responsibility or liability for it. This e-mail an=
d attachments (if any) transmitted with it are confidential and/or privileg=
ed and solely for the use of the intended person or entity to which it is a=
ddressed. Any review, re-transmission, dissemination or other use of or tak=
ing of any action in reliance upon this information by persons or entities =
other than the intended recipient is prohibited. This e-mail and its attach=
ments have been scanned for the presence of computer viruses. It is the res=
ponsibility of the recipient to run the virus check on e-mails and attachme=
nts before opening them. If you have received this e-mail in error, kindly =
delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------_=_NextPart_001_01C5887E.5DC080C0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005>hi</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN class=3D175285313-14=
072005>Since=20
you have picked this document from the Calypso Gui, so i just wanted to kno=
w if=20
you want HTTPS for the Calypso GUI or Webtest. If you want it for webtest=
 then&nbsp;<FONT face=3DVerdana><SPAN class=3D300191014-14072005>you can fo=
llow the=20
steps mentioned in the doc.&nbsp;Y</SPAN></FONT>ou can also&nbsp;refer to t=
he=20
Webtest samples inside docs&nbsp; (as suggested by Paul).</SPAN></FONT></DI=
V>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D175285313-14072005>Archit</SPAN></FONT></DIV></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft><FO=
NT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> Vikenty=
   Menshutkin [mailto:VikentyMenshutkin@oilspace.com] <BR><B>Sent:</B> Thur=
sday,=20
  July 14, 2005 5:33 PM<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject=
:</B>=20
  RE: [Webtest] webtest https support<BR><BR></FONT></DIV><!-- Converted fr=
om text/plain format --><FONT=20
  size=3D2>
  <P class=3DMsoNormal><SPAN style=3D"mso-spacerun: yes"><FONT face=3DVerda=
na=20
  color=3D#0000ff>thats all that I found:</FONT></SPAN></P>
  <P class=3DMsoNormal><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; </SPA=
N><B=20
  style=3D"mso-bidi-font-weight: normal">HOW TO TEST HTTPS WITH=20
  WEBTEST<o:p></o:p></B></P>
  <P class=3DMsoNormal><B=20
  style=3D"mso-bidi-font-weight: normal"><o:p>&nbsp;</o:p></B><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Since you wil=
l be=20
  using Java 1.4.2 and above <SPAN class=3DGramE>( as</SPAN> mentioned in t=
he=20
  installation checklist for Calypso), you need not worry<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>about the SSL , as JSSE is incl=
uded.=20
  <SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><SPAN style=3D"COLOR: =
black">The=20
  Java Secure Socket Extension (JSSE) is a set of packages that enable secu=
re=20
  Internet communications. It implements a Java technology version of Secur=
e=20
  Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. It incl=
udes=20
  functionality for data encryption, server authentication, message integri=
ty,=20
  and optional client authentication.<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><SPAN=20
  style=3D"COLOR: black"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><B=20
  style=3D"mso-bidi-font-weight: normal"><SPAN style=3D"COLOR: black">Get t=
he server=20
  certificate<o:p></o:p></SPAN></B></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><SPAN style=3D"COLOR: =
black">The=20
  server certificate can be downloaded by clicking at the "key lock" icon a=
t=20
  Internet Explorer while having a SSL connection. The icon is locatetd at =
the=20
  very bottom at the right. The ceritifcate dialogs open and at "Details" y=
ou=20
  can click "Copy to File". Here you export the server certificate as DER=
   encoded X.509 certificate.You can use a name for it, say,=20
  "connection.cer&#8221;.<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><SPAN=20
  style=3D"COLOR: black"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.25in"><B=20
  style=3D"mso-bidi-font-weight: normal"><SPAN style=3D"COLOR: black">Creat=
e your=20
  server keystore<o:p></o:p></SPAN></B></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbs=
p;=20
  </SPAN>We need a keystore containing the server certificate of the server=
 you=20
  want to test. No certificate - no connection. <o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbs=
p;&nbsp;=20
  </SPAN>You create the "trust.keystore" with following command on the comm=
and=20
  line.<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><B><SPAN=20
  style=3D"COLOR: black"><SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN><S=
PAN=20
  class=3DGramE>keytool</SPAN> -import -storepass together -file connection=
.cer=20
  -keystore trust.keystore -alias connection </SPAN></B><SPAN=20
  style=3D"COLOR: black"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black">Here we had created a keystore with the name=20
  "trust.keystore" protected with the password "together". Into this keysto=
re we=20
  import the certificate "connection.cer" with the alias "together".=20
  <o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black">Now you have a keystore with the name "trust.keyst=
ore"=20
  with exactly one server certificate.<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black">Canoo Webtest needs to know that you are going to =
use=20
  SSL. You have to define the following properties at the start of your web=
test=20
  script. <o:p></o:p></SPAN></P>
  <P>
  <TABLE class=3DMsoNormalTable=20
  style=3D"WIDTH: 100%; mso-cellspacing: 1.5pt; mso-padding-alt: 2.25pt 2.2=
5pt 2.25pt 2.25pt"=20
  cellPadding=3D0 width=3D"100%" border=3D0>
    <TBODY>
    <TR style=3D"mso-yfti-irow: 0; mso-yfti-firstrow: yes">
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #bb=
bbbb; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><B><SPAN style=3D"COLOR: black">Property=20
        <o:p></o:p></SPAN></B></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #bb=
bbbb; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><B><SPAN style=3D"COLOR: black">Value=20
        <o:p></o:p></SPAN></B></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #bb=
bbbb; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><B><SPAN style=3D"COLOR: black">What it=20
        does?<o:p></o:p></SPAN></B></P></TD></TR>
    <TR style=3D"mso-yfti-irow: 1">
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #ef=
efef; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN=20
        style=3D"COLOR: black">webtest.connectioninitializer=20
      <o:p></o:p></SPAN></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #ef=
efef; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN=20
        style=3D"COLOR: black">com.canoo.webtest.security.SunJsseBaseConnec=
tionInitializer=20
        <o:p></o:p></SPAN></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #ef=
efef; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN style=3D"COLOR: black">Tell Canoo Webtes=
t to=20
        instantiate SSL connections <o:p></o:p></SPAN></P></TD></TR>
    <TR style=3D"mso-yfti-irow: 2; mso-yfti-lastrow: yes">
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #dd=
dddd; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN style=3D"COLOR: black">webtest.truststor=
e.file=20
        <o:p></o:p></SPAN></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #dd=
dddd; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN=20
        style=3D"COLOR: black">webtest/certs/trust.keystore (<B=20
        style=3D"mso-bidi-font-weight: normal">or</B> the location of this=
         keystore)<o:p></o:p></SPAN></P></TD>
      <TD=20
      style=3D"PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; BACKGROUND: #dd=
dddd; PADDING-BOTTOM: 1.5pt; PADDING-TOP: 1.5pt"=20
      vAlign=3Dtop>
        <P class=3DMsoNormal><SPAN style=3D"COLOR: black">Tell Canoo Webtes=
t where=20
        to look for server certificates=20
  <o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE></P>
  <P class=3DMsoNormal style=3D"MARGIN: 8.05pt 5.25pt"><SPAN=20
  style=3D"COLOR: black">Now tell Canoo Webtest about using HTPPS and the p=
ort 443=20
  in the <B>config </B>element. <o:p></o:p></SPAN><BR><BR>&gt; -----Origina=
l=20
  Message-----<BR>&gt; From: webtest-admin@lists.canoo.com<BR>&gt; [<A=20
  href=3D"mailto:webtest-admin@lists.canoo.com">mailto:webtest-admin@lists.=
canoo.com</A>]=20
  On Behalf Of Paul King<BR>&gt; Sent: Thursday, July 14, 2005 3:55 PM<BR>&=
gt;=20
  To: webtest@gate2.canoo.com<BR>&gt; Subject: Re: [Webtest] webtest https=
   support<BR>&gt;<BR>&gt;<BR>&gt; Yes, we should fix this.<BR>&gt;<BR>&gt;=
 In=20
  the meantime, you can submit a fix for the doc :-) or<BR>&gt; search the=
   mailing list or look at the included examples.<BR>&gt;<BR>&gt;=20
  Paul.<BR>&gt;<BR>&gt; Vikenty Menshutkin wrote:<BR>&gt; &gt; So, how can =
we=20
  use webtest without the latest docs?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt;=20
  &gt;&gt;-----Original Message-----<BR>&gt; &gt;&gt;From:=20
  webtest-admin@lists.canoo.com<BR>&gt; &gt;&gt;[<A=20
  href=3D"mailto:webtest-admin@lists.canoo.com">mailto:webtest-admin@lists.=
canoo.com</A>]=20
  On Behalf Of Paul King<BR>&gt; &gt;&gt;Sent: Thursday, July 14, 2005 2:37=
   PM<BR>&gt; &gt;&gt;To: webtest@gate2.canoo.com<BR>&gt; &gt;&gt;Subject: =
Re:=20
  [Webtest] webtest https support<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt;=
   &gt;&gt;https is supported, the doco looks like it needs updating.<BR>&g=
t;=20
  &gt;&gt;<BR>&gt; &gt;&gt;Paul.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;Vikenty=
   Menshutkin wrote:<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;&gt;Hi All,<BR>&gt;=
   &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;Does any of you guys have some suggesti=
ons on=20
  how to use<BR>&gt; webtest on<BR>&gt; &gt;&gt;&gt;https protocol? Or, whe=
n it=20
  will be available?<BR>&gt; &gt;&gt;&gt;(<A=20
  href=3D"http://webtest.canoo.com/webtest/manual/syntax.html#config">http:=
//webtest.canoo.com/webtest/manual/syntax.html#config</A><BR>&gt;=20
  &gt;&gt;<BR>&gt; &gt;&gt;- I cant<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;&gt;im=
agine=20
  that 2 simple protocols is enough!!)<BR>&gt;=20
  &gt;&gt;&gt;<BR>&gt;<BR>&gt;<BR>&gt;=20
  _______________________________________________<BR>&gt; WebTest mailing=
   list<BR>&gt; WebTest@lists.canoo.com<BR>&gt; <A=20
  href=3D"http://lists.canoo.com/mailman/listinfo/webtest">http://lists.can=
oo.com/mailman/listinfo/webtest</A></FONT>=20
  </P></BLOCKQUOTE><FONT SIZE=3D3><BR>
<BR>
MASTEK<BR>
"Making a valuable difference"<BR>
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.<BR>
In the US, we're called MAJESCO<BR>
<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
Opinions expressed in this e-mail are those of the individual and not that =
of Mastek Limited, unless specifically indicated to that effect. Mastek Lim=
ited does not accept any responsibility or liability for it. This e-mail an=
d attachments (if any) transmitted with it are confidential and/or privileg=
ed and solely for the use of the intended person or entity to which it is a=
ddressed. Any review, re-transmission, dissemination or other use of or tak=
ing of any action in reliance upon this information by persons or entities =
other than the intended recipient is prohibited. This e-mail and its attach=
ments have been scanned for the presence of computer viruses. It is the res=
ponsibility of the recipient to run the virus check on e-mails and attachme=
nts before opening them. If you have received this e-mail in error, kindly =
delete this e-mail from all computers.<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
</FONT>
</BODY></HTML>

------_=_NextPart_001_01C5887E.5DC080C0--