You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ash ag <as...@gmail.com> on 2006/03/02 07:33:43 UTC

Executing Manager Commands With Ant and SSL

I am executing tomcat manager commands with ant.
I use the following ant build file.

<project name="My Application" default="print" basedir=".">

  <!-- Configure the context path for this application -->
  <property name="path"     value="/app"/>

  <!-- Configure properties to access the Manager application -->
  <property name="url"      value=" https://192.168.8.225/manager"/>
  <property name="username" value="admin"/>
  <property name="password" value="admin"/>

  <!-- Configure the custom Ant tasks for the Manager application -->
  <taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/>

  <!-- Executable Targets -->
  <target name="stop" description="Remove web application">
    <stop url="${url}" username="${username}" password="${password}"
            path="${path}"/>
  </target>

</project>

Tomcat is configured for secure https:// connections only.
When i issue command
ant stop
i get the following exception :
Buildfile: build.xml
stop:
BUILD FAILED
/opt/Ant/apache-ant-1.6.1/build.xml:47: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException : No trusted certificate found
Total time: 0 seconds

How can i configure the certificate in this case.

thanks in advance
--

Re: Executing Manager Commands With Ant and SSL

Posted by Brian Munroe <br...@gmail.com>.
On 3/1/06, ash ag <as...@gmail.com> wrote:

> BUILD FAILED
> /opt/Ant/apache-ant-1.6.1/build.xml:47: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException : No trusted certificate found
> Total time: 0 seconds
>
> How can i configure the certificate in this case.
>

Are you using a self-signed SSL cert?  Looks to be the case.  If so,
you have two options:

1) Buy a commercially signed SSL certificate.
2) Import the self-signed root CA into the
$JAVA_HOME/jre/lib/security/cacerts file

I never bothered to figure out how to do number 2, but this[1] may be helpful.

-- brian

[1] - http://www.davtar.org/~david/makekeys.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org