title: Using self signed certificates
body: <p>I am using self signed certificate for HTTPS connection to and from Axis2 server. All of these connections works fine and as desired.</p>
  
  <p>There is a part in my web service which is responsible for sending emails. I am using GMail for the purpose of sending mail.</p>
  
  <p>The problem is when I try to send a mail using an SSL connection I get certificate error, i.e. GMail certificate is not trusted. I had faced a similar problem with JBoss as well. For once I was able to get around this problem downloading GMail certificate and than importing it into the Keystore using Keytool utility. For a long time this had worked.</p>
  
  <p>But only recently I have started to get the Old problem again. I tried to use the old technique that fixed the problem last time, but this time that did not work. (not sure why)</p>
  
  <p>I reckon that GMail uses a signed certificate which out of the box should be trusted by any of the servers, let it be JBoss or Axis2. I fail to figure out what the problem actually is. Is it because of using of Self Signed certificate? Or are there any specific way of creating it so that the Signed certificates are trusted?</p>
  
  <p>Thanks for the help. </p>