...
If you start the WSO2 Carbon server as a background job, you will not be able to provide password values on the command line. Therefore, you must start the server in "daemon" mode as explained below.
- Create a new file in the
<PRODUCT_HOME>
directory. The file named "password-tmp" in<PRODUCT_HOME>/
directory. should be named according to your OS as explained below.- For Linux: The file name should be
password-
tmp. - For Windows: The file name should be
password-tmp.txt
.
Info When you start the server (see step 3 below), the keystore password will be picked from this new file. Note that this file is automatically deleted from the file system after the server starts. Therefore, the admin has to create a new text file every time the server starts.
Alternatively, if you want to retain the password file after the server starts, the file should be named as follows:
- For Linux: The file name should be
password-persist
. - For Windows: The file name should be
password-persist.txt
.
- For Linux: The file name should be
- Add "wso2carbon" (the primary keystore passwordprimary keystore password) to this the new file and save. By default, the password provider assumes that both private key and keystore passwords and keystore passwords are the same. If not, the private key password must be entered in the second line of the file.
Now, start the server as a background process by running the following command.
Code Block ./wso2server.sh start
Keystore password will be picked up from the "password-tmp" file. Once the server starts, this file is automatically deleted from the file system. Make sure to add this temporary file back whenever you start the sever as a background process. If you name of the password file "password-persist" instead of "password-tmp", then the file will not be deleted after the server starts. Therefore, it will not be required to provide the password in subsequent startups.
Info Note that every time the server starts, the admin has to create a text file.
Start the server by running the product start-up script from the
<PRODUCT_HOME>/bin/
directory by executing the following command:Code Block daemon. sh wso2server.sh -start