You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by randie ursal <ur...@ntsp.nec.co.jp> on 2002/09/03 08:52:52 UTC

SSL in Tomcat

hi,

sorry for this off the list topic but i really need some
idea.

  when i created my self-signed certificate using keytool to make SSL
  available in Tomcat i specify in my certificate information
  
   ex.   
     keytool -genkey -dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, 
	     S=California, C=US" -alias mark

  but when i access my webserver both through browser and java application
  by using "https://carnelian:8443/testApp" 
  i got and exception which says that HTTPS hostname is wrong or certificate 
  is not the same as site name. 

  so i change the "CN" key equal to my hostname (ex."Carnelian"), now it
  works...why is this?

  keytool docs says that "CN" could be any valid full name...just like the 
  example above when i use "Mark Smith".

  is there a way i can specify the certificate information using the full
  name instead of the web server hostname?....and access it using https
  without getting an exception.

  i'm using Apache Tomcat 4.0, JSSE1.0.3, JDK1.3.1

thanks in advance

  randie
  
  
  



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>