webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Generating an Encrypted Password for My webMethods Server for replacing keystores

  • 1.  Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Wed June 09, 2021 12:45 PM

    Hello Folks,

    When trying to run the command to run the encrypt the password for custom_wrapper.conf for replacing the default keystores.

    I keep running into the below error:

    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager
    at com.webMethods.caf.common.CipherUtil.initLogging(CipherUtil.java:279)
    at com.webMethods.caf.common.CipherUtil.(CipherUtil.java:47)
    Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    … 2 more

    This is for version 10.7. Any leads to resolve this, thanks.


    #ssl
    #Replacing-Keystore
    #webMethods


  • 2.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Thu June 10, 2021 03:06 AM

    Dear Srivastava,

    Please post the exact command you are using.


    #Replacing-Keystore
    #webMethods
    #ssl


  • 3.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Thu June 10, 2021 06:50 AM

    Here’s the command:

    ./java -cp “/u01/SoftwareAG_MWS/common/lib/wm-caf-common.jar:/u01/SoftwareAG_MWS/common/lib/ext/slf4j-API.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-security.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-core.jar:/u01/SoftwareAG_MWS/common/lib/ext/enttoolkit.jar*” com.webMethods.caf.common.CipherUtil password


    #webMethods
    #ssl
    #Replacing-Keystore


  • 4.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Thu June 10, 2021 11:47 AM

    I will check and get back to you soon. However as a pointer, please check if your java runtime is java 8 or not as java 11 or 16 might have few modules missing due to modular structure.


    #ssl
    #webMethods
    #Replacing-Keystore


  • 5.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Thu June 10, 2021 01:58 PM

    For wM 9.12 I was able to made this command working while the command described in the Admin Guide was incorrect:

     java -cp common/lib/wm-caf-common.jar:common/lib/ext/log4j.jar com.webmethods.caf.common.CipherUtil <password>
    

    Regards,
    Holger


    #ssl
    #webMethods
    #Replacing-Keystore


  • 6.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Thu June 10, 2021 03:30 PM

    This got resolved by referring to the exact jar in log4j folder rather than using log4j*…


    #ssl
    #Replacing-Keystore
    #webMethods


  • 7.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Fri June 11, 2021 03:37 AM

    Hi Basu,

    please consider sharing the complete exact command line as a reference for further usage.

    Regards,
    Holger


    #webMethods
    #ssl
    #Replacing-Keystore


  • 8.  RE: Generating an Encrypted Password for My webMethods Server for replacing keystores

    Posted Mon June 14, 2021 11:14 AM

    Here you go (this for 10.7):

    ./java -cp “/u01/SoftwareAG_MWS/common/lib/wm-caf-common.jar:/u01/SoftwareAG_MWS/common/lib/ext/slf4j-API.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-security.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-core.jar:/u01/SoftwareAG_MWS/common/lib/ext/enttoolkit.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-slf4j-impl.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-API.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-core.jar” com.webMethods.caf.common.CipherUtil


    #ssl
    #webMethods
    #Replacing-Keystore