Header Ads

  • New Updates

    Working code for tomcat 9 to enable https (PWM)



    First create a keystore file

    C:\Program Files\Java\jre1.8.0_144\bin>keytool.exe -genkey -alias pwm -keyalg RSA -keystore C:\pwm-data\Keystore\pwmkeystore
    It will ask information,type password and data and create the file
    To check keystore file

    keytool.exe -list -keystore C:\pwm-data\K
    eystore\pwmkeystore
    

    Then add below code in

    C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\sever.xml

    <Connector SSLEnabled="true" acceptCount="100" clientAuth="false"
        disableUploadTimeout="true" enableLookups="false" maxThreads="25"
        port="8443" keystoreFile="C:\pwm-data\Keystore\pwmkeystore" keystorePass="123456"
        protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
        secure="true" sslProtocol="TLS" />
    Here the password is the password we type at time of we create keystore file ,



    No comments

    Post Top Ad

    Post Bottom Ad

    Ads