SSL on different port

Secured Sockets Layer (SSL) provides websites with encryption services which means, protects user data from a hacker to read data packets that transfer between the server and client.Generaly it runs on well known port number 443 and doesn’t mean it has to use the same port.
An administrator can change manually on a different port number.

In IIS , this need to be bind with different port no and then can access the site by using

https://yoursite:8445/
In Apache configuration, this need to be enabled by virtual host setting
————————————————————————
Listen 80
Listen 444

NameVirtualHost IP:80
NameVirtualHost ip:444

<VirtualHost *:80>
  ServerName www.yourdomain.com
  DocumentRoot /www/htdocs/
</VirtualHost>
<VirtualHost IP:444>
    ServerName  www.yourdomain.com
    DocumentRoot /www/htdocs/subcom/

     SSLEnable
    SSLCertificateFile  /path/to/ceritficate.crt
    SSLCertificateKeyFile  /path/to/ceritficate.key
    SSLCACertificateFile  /path/to/ca.crt
</VirtualHost>
On Jboss
——–
Connector in the $CATALINA_BASE/conf/server.xml file

To define a Java (JSSE) connector
 <– Define a blocking Java SSL Coyote HTTP/1.1 Connector on port 8443 –>
<Connector protocol=”org.apache.coyote.http11.Http11Protocol”
      port=”8443″ …/>

<– Define a SSL Coyote HTTP/1.1 Connector on port 8443 –>
<!–
<Connector
           port=”8443″ maxThreads=”200″
           scheme=”https” secure=”true” SSLEnabled=”true”
           keystoreFile=”${user.home}/.keystore” keystorePass=”changeit”
           clientAuth=”false” sslProtocol=”TLS”/>
–>
Alternatively, APR connector 
  
 <– Define a APR SSL Coyote HTTP/1.1 Connector on port 8443 –>
<Connector protocol=”org.apache.coyote.http11.Http11AprProtocol”
           port=”8443″ …/>
 <Listener className=”org.apache.catalina.core.AprLifecycleListener”
          SSLEngine=”someengine” SSLRandomSeed=”somedevice” />
 
 <– Define a SSL Coyote HTTP/1.1 Connector on port 8443 –>
<!–
<Connector
           port=”8443″ maxThreads=”200″
           scheme=”https” secure=”true” SSLEnabled=”true”
           SSLCertificateFile=”/usr/local/ssl/server.crt”
           SSLCertificateKeyFile=”/usr/local/ssl/server.pem”
           clientAuth=”optional” SSLProtocol=”TLSv1″/>
–>
https://localhost:8443

Refferences

IIS
http://msdn.microsoft.com/en-us/library/ms733791.aspx
http://www.sslshopper.com/article-how-to-configure-ssl-host-headers-in-iis-6.html
http://www.petri.co.il/configure_ssl_on_your_website_with_iis.htm#

apache
http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html
http://www.apache-ssl.org/
tomcat
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
http://mircwiki.rsna.org/index.php?title=Configuring_Tomcat_to_Support_SSL

Advertisements

Posted on August 7, 2013, in Uncategorized, Web. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: