T*****e 发帖数: 361 | 1 Hello all,
I am trying to send out some email notification from a windows server to an
email list using our mail server. However, I got the following
certification error (see details below).
My application is a simple java application running every 5 minutes. We use
Java 5 update 16.
I have also added our mail server's certificate to the default keystore of
the user account running this application, according to this page:
http://www.java-samples.com/showtutorial.php?tutorialid=210
I also adde |
g*****g 发帖数: 34805 | 2 You seems to be using a test certificate on server side, the certificate
is not signed by a Trust CA for example. If you open it with your browser,
you'll see a warning.
an
use
【在 T*****e 的大作中提到】 : Hello all, : I am trying to send out some email notification from a windows server to an : email list using our mail server. However, I got the following : certification error (see details below). : My application is a simple java application running every 5 minutes. We use : Java 5 update 16. : I have also added our mail server's certificate to the default keystore of : the user account running this application, according to this page: : http://www.java-samples.com/showtutorial.php?tutorialid=210 : I also adde
|
T*****e 发帖数: 361 | 3 By the way, we have the same application running just fine on a server with
java 1.4. Don't know whether or not there is any difference between Java 1.4
and Java 5 regarding java mail. |
T*****e 发帖数: 361 | 4 Yes, our certificate is not signed by a trusted CA. That is why I had to
manually add it to Java's keystore using Java's key tool. However, it does
not seem to work. |
T*****e 发帖数: 361 | 5 It seems that I had made a mistake. I tried to add the certificate to the
current user's default key store location (c:\Documents and Settings\user.
name\.keystore) but it did not work. Then I tried to add it to JDK_HOME\jre
\lib\security\cacerts and JRE_HOME\lib\security\cacerts. This time it
worked just fine. |