Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

If you user seam-mail with ssl and you use a certificate witch ist not signed by a trusted ca (eg: verisign,...) you get a error like this:

... part of stacktrace:
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: my.server.com, port: 465;
  nested exception is:
        java.net.SocketException: Unconnected sockets not implemented
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
        at javax.mail.Service.connect(Service.java:297)
        at javax.mail.Service.connect(Service.java:156)
        at javax.mail.Service.connect(Service.java:105)
        at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:140)
        ... 72 more

This is because java-mail only accepts certificates that are signed by special companies.

So: you want to use a smtp-server which uses a certificate signed by cacert.org.

You have to tell your JVM to trust this certs.

  1. Download the root.crt and the class3.crt from the homepage of your CA into your home (/home/$username)
  2. Install the certs into your Java-Truststore by typing:
    keytool -import -file /home/$username/class3.crt -alias cacertroot -trustcacerts -keystore /usr/lib/jvm/java-1.5.0-sun/jre/lib/security/cacerts
    keytool -import -file /home/$username/root.crt -alias cacertclass3 -trustcacerts -keystore /usr/lib/jvm/java-1.5.0-sun/jre/lib/security/cacerts

Maybee you nedd root-access to do this. If you are asked for password of your keystore: if you did not already set it, the default is: changeit