Question & Answer
Question
How do I use runBatch in a secure connection?
Cause
Need a secure connection for mass updates using runBatch
Answer
You use the runBatchSecure in the same manner you use the runBatch
runBatch hostname port userid password scriptname
runBatchSecure hostname port userid password scriptname
The difference is you have to modify the runBatchSecure and insert your secure connection information.
You have to modify example script. First un-comment the line (remove the # on Linux remove REM on Windows) in runBatchSecure and then set required values as shown here.
# System Property/Argument passed to BatchCreate Description
# ----------------------------------------------- ---------------------------------------------------------------------------------------------
# -Dlog4j.configuration=file:../conf/Engine.log4j Location of the Control Center Engine logging properties
# -Dsecure=true Use a secure connection (tells BatchCreate to establish a secure connection to the engine).
# -Djavax.net.ssl.keyStore=path/keystore-file Location of the Java keystore file containing an application process's own certificate and private key.
# -Djavax.net.ssl.keyStorePassword=password Password to access the private key from the keystore file specified by javax.net.ssl.keyStore
# -Djavax.net.ssl.keyStoreType=jks (Optional) For Java keystore file format, this property has the value jks (or JKS). You do not normally specify this property, because its default value is already jks.
# -Djavax.net.ssl.trustStore=path/truststore-file Location of the Java keystore file containing the collection of CA certificates trusted by this application process (trust store).
# -Djavax.net.ssl.trustStorePassword=password Password to unlock the keystore file (store password) specified by javax.net.ssl.trustStore.
# -Djavax.net.ssl.trustStoreType=jks (Optional) For Java keystore file format, this property has the value jks (or JKS). You do not normally specify this property, because its default value is already jks.
# ----------------------------------------------- ---------------------------------------------------------------------------------------------
# -Dlog4j.configuration=file:../conf/Engine.log4j Location of the Control Center Engine logging properties
# -Dsecure=true Use a secure connection (tells BatchCreate to establish a secure connection to the engine).
# -Djavax.net.ssl.keyStore=path/keystore-file Location of the Java keystore file containing an application process's own certificate and private key.
# -Djavax.net.ssl.keyStorePassword=password Password to access the private key from the keystore file specified by javax.net.ssl.keyStore
# -Djavax.net.ssl.keyStoreType=jks (Optional) For Java keystore file format, this property has the value jks (or JKS). You do not normally specify this property, because its default value is already jks.
# -Djavax.net.ssl.trustStore=path/truststore-file Location of the Java keystore file containing the collection of CA certificates trusted by this application process (trust store).
# -Djavax.net.ssl.trustStorePassword=password Password to unlock the keystore file (store password) specified by javax.net.ssl.trustStore.
# -Djavax.net.ssl.trustStoreType=jks (Optional) For Java keystore file format, this property has the value jks (or JKS). You do not normally specify this property, because its default value is already jks.
This is the area you have to remove the # comment and insert the values for your system.
# "/sci/ICC6102/jre/bin/java" -Xbootclasspath/p:$BOOT_CP -Xms256m -Xmx512m -Dlog4j.configuration=file:../conf/Engine.log4j -Djava.util.logging.config.file=../conf/javalogging.properties -Dopenjpa.DynamicEnhancementAgent=false -Dsecure=true -Djavax.net.ssl.keyStore=path/keystore-file -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.keyStoreType=jks -Djavax.net.ssl.trustStore=path/truststore-file -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.trustStoreType=jks -DCONFIG_DIR=../conf -jar ../lib/sterling/SCCenter.jar com.sterlingcommerce.scc.utility.batch.BatchCreate $1 $2 $3 $4 $5 $6 $7 $8
# "/sci/ICC6102/jre/bin/java" -Xbootclasspath/p:$BOOT_CP -Xms256m -Xmx512m -Dlog4j.configuration=file:../conf/Engine.log4j -Djava.util.logging.config.file=../conf/javalogging.properties -Dopenjpa.DynamicEnhancementAgent=false -Dsecure=true -Djavax.net.ssl.keyStore=path/keystore-file -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.keyStoreType=jks -Djavax.net.ssl.trustStore=path/truststore-file -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.trustStoreType=jks -DCONFIG_DIR=../conf -jar ../lib/sterling/SCCenter.jar com.sterlingcommerce.scc.utility.batch.BatchCreate $1 $2 $3 $4 $5 $6 $7 $8
Related Information
[{"Product":{"code":"SS9GLA","label":"IBM Control Center"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"6.1.1;6.1.0.1;6.1;6.0.0.1;6.0;5.4.2.1","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
Modified date:
17 December 2019
UID
swg22017028