Hi All, I am trying to test a secure website. I had added the certificate of webpage to my keystore of trusted certificates using keytool utility. Then I did following changes to tell webtest to use this keystore:
<property name="webtest.connectioninitializer" value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer" /> <property name="webtest.truststore.file" value="certs/trust.keystore" /> <property name="webtest.truststore.passphrase" value="<password of the keystore" /> But when ran the build file. It failed and shows error message Step[invoke (1/9)]: HTTP error 401, at: invoke. And when I opened the Resulting page... the page contains following contents--- Error 401--Unauthorized >From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.2 401 Unauthorized The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11. So please help me out to resolve this problem. Thanks & Regards, Vipin This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.

