This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -export -keystore wso2carbon.jks -alias wso2carbon -file wso2carbon.cer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -import -alias wso2carbon1 -file wso2carbon.cer -keystore client-truststore.jks -storepass wso2carbon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo " " | |
echo "Password encryption started .. !" | |
export WSO2_SERVER_HOME="/home/user/wso2am-2.6.0" | |
cp -RL data/* $WSO2_SERVER_HOME/ | |
sleep 2 | |
rm -rf data/* | |
PRODUCT_HOME=${WSO2_SERVER_HOME} | |
CRYPTO_TOOL_HOME="$PRODUCT_HOME/bin/crypto-tool" | |
USERSTORE_FILE="$PRODUCT_HOME/repository/deployment/server/userstores/xyz_com.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | |
* | |
* WSO2 Inc. licenses this file to you under the Apache License, | |
* Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. | |
* You may obtain a copy of the License at | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | |
* | |
* WSO2 Inc. licenses this file to you under the Apache License, | |
* Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE REG_LOG_IDS_TO_KEEP ( | |
REG_LOG_ID INTEGER, | |
REG_TENANT_ID INTEGER | |
); | |
INSERT INTO REG_LOG_IDS_TO_KEEP (REG_LOG_ID, REG_TENANT_ID) | |
SELECT MAX(REG_LOG_ID) AS REG_LOG_ID, REG_TENANT_ID FROM REG_LOG GROUP BY REG_PATH, REG_TENANT_ID; | |
DELETE FROM REG_LOG WHERE REG_LOG_ID NOT IN (SELECT REG_LOG_ID FROM REG_LOG_IDS_TO_KEEP); | |
DROP TABLE REG_LOG_IDS_TO_KEEP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID INTEGER); | |
-- Extract resource tag (ID) created when versioning is disabled -- | |
INSERT INTO TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID) | |
SELECT REG_TAG_ID | |
FROM REG_RESOURCE_TAG | |
WHERE REG_PATH_ID IN | |
(SELECT REG_PATH_ID | |
FROM REG_RESOURCE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID INTEGER); | |
-- Extract resource tag (ID) created when versioning is disabled -- | |
INSERT INTO TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID) | |
SELECT REG_TAG_ID | |
FROM REG_RESOURCE_TAG | |
WHERE REG_PATH_ID IN | |
(SELECT REG_PATH_ID | |
FROM REG_RESOURCE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID INTEGER); | |
-- Extract resource tag (ID) created when versioning is disabled -- | |
INSERT INTO TEMP_REG_RESOURCE_TAG_ID(REG_TAG_ID) | |
SELECT REG_TAG_ID | |
FROM REG_RESOURCE_TAG | |
WHERE REG_PATH_ID IN | |
(SELECT REG_PATH_ID | |
FROM REG_RESOURCE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE TEMP_REG_RESOURCE_PROPERTY_ID(REG_PROPERTY_ID INTEGER); | |
-- Extract resource property (ID) created when versioning is disabled -- | |
INSERT INTO TEMP_REG_RESOURCE_PROPERTY_ID(REG_PROPERTY_ID) | |
SELECT REG_PROPERTY_ID | |
FROM REG_RESOURCE_PROPERTY | |
WHERE REG_PATH_ID IN | |
(SELECT REG_PATH_ID | |
FROM REG_RESOURCE); |
OlderNewer