Technical Stuff

Start from basics

Redirection from HTTP to HTTPS in Jboss

Redirection from HTTP to HTTPS in Jboss
Redirection from HTTP to HTTPS in Jboss
5 (100%) 1 vote
  1. Hello EveryOne ! This blog is connected to SSL part. So, once you are completed with SSL. You are expected to do redirection from HTTP to HTTPS.

    So, Going ahead first read about SSL and connect with the current one.

     

    For doing SSL,

    Put .jks file in conf directory. Give below details.

    Location : /jboss-eap-5.1/jboss-as/server/<profile>/deploy

    Server.xml file

    Uncomment the SSL Tag & Add SSL JKS Password and conf path.

    <!-- SSL/TLS Connector configuration using the admin devl guide keystore -->

          <Connector protocol="HTTP/1.1" SSLEnabled="true"

               port="18443" address="${jboss.bind.address}"

               scheme="https" secure="true" clientAuth="false"

               keystoreFile="${jboss.server.home.dir}/conf/nabard_org.jks"

               keystorePass="PASSWORD" sslProtocol = "TLS"/>

     

    Location :  /jboss-eap-5.1/jboss-as/server/<profile>/deployers/jbossweb.deployer

    Web.xml

    Add below tag in </webapp>

    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Protected Context</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>

    Thank You !
    Happy Learning !!!
    If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

    If you have any Recommendation for future blog, You can email us on [email protected]

    Top Searches :

    1. SSL Implementation in Jboss
    2. Best SSL Guide.
    3. Types of SSL.
    4. Best Jboss Server Security Guide.
    5. Introduction to hardening in Middleware.
    6. Hardening In Jboss EAP 5.1
    7. Enable TLS1.2 in Jboss EAP 7
    8. VAPT – Enabling TLS1.1/1.2 in Jboss
    9. VAPT – DISABLING HTTP METHODS
    10. VAPT – HOW TO REMOVE APACHE COYOTE VERSION FROM JBOSS
    11. INSTALLATION OF JBOSS ON LINUX
    12. INTRODUCTION TO JBOSS
    13. INTRODUCTION TO MIDDLEWARE
    14. Thread Dump
    15. Heap Dump

     

4 thoughts on “Redirection from HTTP to HTTPS in Jboss

  1. Pingback: My Middleware

Leave a Reply

%d bloggers like this: