You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The settings will be removed if we update the debug service PTF.
It may create a conflict with other debug setup scenarios which do not use vscode.
Starting from debug service version 2.0.1, the startDebugService.sh script checks for a new environment variable DEBUG_SERVICE_EXTERNAL_CONFIG_FILE. If this environment variable is set, the script will load the settings specified in the external file.
Here is the proposed solution to move the certificate settings:
Store the certificate settings in a file under /QIBM/UserData/IBMiDebugService. The files under the UserData folder will not be overwritten by a debug service PTF install.
Set the environment variable DEBUG_SERVICE_EXTERNAL_CONFIG_FILE to the fully qualified path of the new setting file under UserData, before running the startDebugService.sh script.
Of course, you need to check for the debug service version. You can only use the new solution if debug service is at version 2.0.1+. Please note that JAVA_HOME is no longer required in 2.0.1+. It will be defaulted to /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit if JAVA_HOME is not set.
Code for IBM i currently saves the following certificate related settings to /QIBM/ProdData/IBMiDebugService/bin/DebugService.env:
JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit
DEBUG_SERVICE_KEYSTORE_FILE=/QIBM/UserData/IBMiDebugService/certs/debug_service.pfx
DEBUG_SERVICE_KEYSTORE_PASSWORD=xxxxxxxxx
CODE4IDEBUG=$([ -f $DBGSRV_WRK_DIR/.code4i.debug ] && cp $DBGSRV_WRK_DIR/.code4i.debug $DBGSRV_WRK_DIR/key.properties)
This solution has two problems:
Starting from debug service version 2.0.1, the startDebugService.sh script checks for a new environment variable DEBUG_SERVICE_EXTERNAL_CONFIG_FILE. If this environment variable is set, the script will load the settings specified in the external file.
Here is the proposed solution to move the certificate settings:
Of course, you need to check for the debug service version. You can only use the new solution if debug service is at version 2.0.1+. Please note that JAVA_HOME is no longer required in 2.0.1+. It will be defaulted to /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit if JAVA_HOME is not set.
@worksofliam @sebjulliand
The text was updated successfully, but these errors were encountered: