An Alternate way to setup SSL through Apache Felix Jetty Based Http Service

Statement: An Alternate way to setup SSL through Apache Felix Jetty Based Http Service

Pre-requisite:


  • JRE 1.8
  • AEM 6.3 up and runing

Solution :

How to Generate the Keystore.jks Dev credentials:
  • open the command prompt
  • Enter the below command
  • D:\AEM 6.2\Author\ssl> keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass changeit -validity 360 -keysize 2048

 What is your first and last name?
  [Unknown]:  chandrashekar Naik
What is the name of your organizational unit?
  [Unknown]:  ABC
What is the name of your organization?
  [Unknown]:  ABC
What is the name of your City or Locality?
  [Unknown]:  singapore
What is the name of your State or Province?
  [Unknown]:  singapore
What is the two-letter country code for this unit?
  [Unknown]:  65
Is CN=chandra Naik, OU=ABC, O=ABC, L=singapore, ST=singapore, C=65 correct?
  [no]:  yes

Enter key password for - enter the password
        (RETURN if same as keystore password): enter password
Re-enter new password:
  • That's it Keystore.jks file is generated under D:\AEM 6.2\Author\ssl>
  • Now Go to Felix console - https://localhost:5443/system/console/configMgr
  • Search for Apache Felix Jetty Based Http Service 
  • Open the Apache Felix Jetty Based Http Service
Where - Enable https = Select 
            Enter the Https port = 5443
           Path for keystore.jks = D:\AEM 6.2\Author\ssl
           File and password  used while generating keystore.jks file 

  • Finally click on Save
  • Open any pages through https://localhost:5443/
  • CLick on Advanced -->proceed to localhost(unsafe) --> Now your AEM instance can be opened over SSL.

No comments:

Post a Comment