...
- Make sure the
ciphertool.sh
(Linux) orciphertool.bat
(Windows) file is accessible in your product'sbin
folder. - This sample is based on the XML configuration file called
rss-config.xml
file which has two passwords called “rssadmin
” and “root
”. - Edit cipher configurations. The cipher related configurations are located in the following location in product:
wso2product/repository/conf/security/
. The two configuration files that need to be edited areciphertextcipher-text.properties
andciphertoolcipher-tool.properties
. Add the following lines to the
ciphertoolcipher-tool.properties
file.Code Block #rssconfig.xml xpaths SYSTEMRSSConfiguration.RSSDEFAULT.WSO2RSS1.PASSWORDPassword=rss-config.xml//RSSConfiguration/Environments/Environment[Name='DEFAULT']/RSSInstances/RSSInstance[Name='WSO2RSS1']/DataSourceConfiguration/Definition/Password,falsetrue
Mention the file name and the XPath of the XML element which describes the password. Also encrypt the password for each password separately by comma separated false (
,false
).Add the following lines to the
ciphertextcipher-text.properties
file.Code Block #rssconfig.xml passwords SYSTEMRSSConfiguration.RSSDEFAULT.WSO2RSS1.PASSWORDPassword=[root]
Info You can see the default password for the Carbon product is “
wso2carbon
”.Apply the real password and encrypt it. To do this, open a terminal and navigate to your product's
bin
folder and enter the following command:Code Block sh ciphertool.sh Dconfigure SYSTEM.RSS.WSO2RSS1.PASSWORD=root
Info SYSTEM.RSS.WSO2RSS1.PASSWORD
is the key for the cipher files.-Dconfigure
- Enter the default password which is “
wso2carbon
” (,wso2carbon
). You can now see encrypted passwords in the
ciphertextcipher-text.properies
file.Code Block RSSConfiguration.DEFAULT.WSO2RSS1.Password=g74ozaONxaLh57rQPlBmmBzL0AnL7tcgUFCHu2OMmIgfK1SZKmRD2GGzIPdkfZQ2sa+iCI8wpOOx\n8ZRX5CeXcNxw N8EdBHPzHkpGkCtzq5u4L2M9KWDmHXg9QXLVeCT+b76NE1iT8jlG7vCeTuw6Ms//\ngZGVgvHxacuGdRyPIVg\=