forked from community/product-iots
Fixing #1003.
parent
6ac04eba48
commit
38963cb807
@ -0,0 +1,89 @@
|
|||||||
|
@echo off
|
||||||
|
REM Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
|
||||||
|
REM Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
REM or more contributor license agreements. See the NOTICE file
|
||||||
|
REM distributed with this work for additional information
|
||||||
|
REM regarding copyright ownership. The ASF licenses this file
|
||||||
|
REM to you under the Apache License, Version 2.0 (the
|
||||||
|
REM "License"); you may not use this file except in compliance
|
||||||
|
REM with the License. You may obtain a copy of the License at
|
||||||
|
REM
|
||||||
|
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
REM
|
||||||
|
REM Unless required by applicable law or agreed to in writing,
|
||||||
|
REM software distributed under the License is distributed on an
|
||||||
|
REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
REM KIND, either express or implied. See the License for the
|
||||||
|
REM specific language governing permissions and limitations
|
||||||
|
REM under the License.
|
||||||
|
|
||||||
|
rem ---------------------------------------------------------------------------
|
||||||
|
rem Startup script for the ciphertool
|
||||||
|
rem
|
||||||
|
rem Environment Variable Prerequisites
|
||||||
|
rem
|
||||||
|
rem CARBON_HOME Must point at your CARBON directory
|
||||||
|
rem
|
||||||
|
rem JAVA_HOME Must point at your Java Development Kit installation.
|
||||||
|
rem
|
||||||
|
rem JAVA_OPTS (Optional) Java runtime options
|
||||||
|
rem ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem Make sure prerequisite environment variables are set
|
||||||
|
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||||
|
echo The JAVA_HOME environment variable is not defined
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:gotJavaHome
|
||||||
|
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||||
|
goto okJavaHome
|
||||||
|
|
||||||
|
:noJavaHome
|
||||||
|
echo The JAVA_HOME environment variable is not defined correctly
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
echo NB: JAVA_HOME should point to a JDK/JRE
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:okJavaHome
|
||||||
|
rem check the CARBON_HOME environment variable
|
||||||
|
|
||||||
|
set CURRENT_DIR=%cd%
|
||||||
|
if not "%CARBON_HOME%" == "" goto gotHome
|
||||||
|
set CARBON_HOME=%CURRENT_DIR%
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
rem guess the home. Jump one directory up to check if that is the home
|
||||||
|
cd ..
|
||||||
|
set CARBON_HOME=%cd%
|
||||||
|
cd %CARBON_HOME%
|
||||||
|
|
||||||
|
:gotHome
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
rem set CARBON_HOME=%~sdp0..
|
||||||
|
set CARBON_HOME=%~sdp0..
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
echo The CARBON_HOME environment variable is not defined correctly
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:okHome
|
||||||
|
rem set the classes
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
rem loop through the libs and add them to the class path
|
||||||
|
cd "%CARBON_HOME%"
|
||||||
|
call ant -buildfile "%CARBON_HOME%\bin\build.xml" -q
|
||||||
|
set CARBON_CLASSPATH=.\conf
|
||||||
|
FOR %%c in ("%CARBON_HOME%\..\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\..\lib\%%~nc%%~xc"
|
||||||
|
FOR %%C in ("%CARBON_HOME%\repository\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\repository\lib\%%~nC%%~xC"
|
||||||
|
|
||||||
|
rem ----- Execute The Requested Command ---------------------------------------
|
||||||
|
echo Using CARBON_HOME: %CARBON_HOME%
|
||||||
|
echo Using JAVA_HOME: %JAVA_HOME%
|
||||||
|
set _RUNJAVA="%JAVA_HOME%\bin\java"
|
||||||
|
|
||||||
|
%_RUNJAVA% %JAVA_OPTS% -Dcarbon.home="%CARBON_HOME%" -cp "%CARBON_CLASSPATH%" org.wso2.ciphertool.CipherTool %*
|
||||||
|
endlocal
|
||||||
|
:end
|
@ -0,0 +1,127 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
|
||||||
|
# Licensed 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, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# ciphertool script for generating stub, skeleton and other required classes
|
||||||
|
#
|
||||||
|
# Environment Variable Prequisites
|
||||||
|
#
|
||||||
|
# CARBON_HOME Home of CARBON installation. If not set I will try
|
||||||
|
# to figure it out.
|
||||||
|
#
|
||||||
|
# JAVA_HOME Must point at your Java Development Kit installation.
|
||||||
|
#
|
||||||
|
# NOTE: Borrowed generously from Apache Tomcat startup scripts.
|
||||||
|
|
||||||
|
# if JAVA_HOME is not set we're not happy
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
echo "You must set the JAVA_HOME variable before running CARBON."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OS specific support. $var _must_ be set to either true or false.
|
||||||
|
cygwin=false;
|
||||||
|
darwin=false;
|
||||||
|
os400=false;
|
||||||
|
mingw=false;
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN*) cygwin=true;;
|
||||||
|
MINGW*) mingw=true;;
|
||||||
|
OS400*) os400=true;;
|
||||||
|
Darwin*) darwin=true
|
||||||
|
if [ -z "$JAVA_VERSION" ] ; then
|
||||||
|
JAVA_VERSION="CurrentJDK"
|
||||||
|
else
|
||||||
|
echo "Using Java version: $JAVA_VERSION"
|
||||||
|
fi
|
||||||
|
if [ -z "$JAVA_HOME" ] ; then
|
||||||
|
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# resolve links - $0 may be a softlink
|
||||||
|
PRG="$0"
|
||||||
|
|
||||||
|
while [ -h "$PRG" ]; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '.*/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG=`dirname "$PRG"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Get standard environment variables
|
||||||
|
PRGDIR=`dirname "$PRG"`
|
||||||
|
|
||||||
|
# Only set CARBON_HOME if not already set
|
||||||
|
[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||||
|
|
||||||
|
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $cygwin; then
|
||||||
|
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||||
|
[ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
|
||||||
|
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For OS400
|
||||||
|
if $os400; then
|
||||||
|
# Set job priority to standard for interactive (interactive - 6) by using
|
||||||
|
# the interactive priority - 6, the helper threads that respond to requests
|
||||||
|
# will be running at the same priority as interactive jobs.
|
||||||
|
COMMAND='chgjob job('$JOBNAME') runpty(6)'
|
||||||
|
system $COMMAND
|
||||||
|
|
||||||
|
# Enable multi threading
|
||||||
|
QIBM_MULTI_THREADED=Y
|
||||||
|
export QIBM_MULTI_THREADED
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Migwn, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $mingw ; then
|
||||||
|
[ -n "$CARBON_HOME" ] &&
|
||||||
|
CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
|
||||||
|
[ -n "$JAVA_HOME" ] &&
|
||||||
|
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||||
|
[ -n "$AXIS2_HOME" ] &&
|
||||||
|
CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
|
||||||
|
# TODO classpath?
|
||||||
|
fi
|
||||||
|
|
||||||
|
# update classpath
|
||||||
|
CARBON_CLASSPATH=""
|
||||||
|
for f in "$CARBON_HOME"/../lib/org.wso2.ciphertool*.jar
|
||||||
|
do
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$f
|
||||||
|
done
|
||||||
|
for h in "$CARBON_HOME"/../components/plugins/*.jar
|
||||||
|
do
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$h
|
||||||
|
done
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$CLASSPATH
|
||||||
|
|
||||||
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
if $cygwin; then
|
||||||
|
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
|
||||||
|
CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
|
||||||
|
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||||
|
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ----- Execute The Requested Command -----------------------------------------
|
||||||
|
|
||||||
|
$JAVA_HOME/bin/java -Dcarbon.home="$CARBON_HOME" -classpath "$CARBON_CLASSPATH" org.wso2.ciphertool.CipherTool $*
|
@ -0,0 +1,7 @@
|
|||||||
|
# this file contains the optional Ciphertool configuration parameters for it to work in non-Carbon environments
|
||||||
|
primary.key.location=repository/resources/security/wso2carbon.jks
|
||||||
|
primary.key.type=JKS
|
||||||
|
primary.key.alias=wso2carbon
|
||||||
|
cipher.text.properties.file=conf/security/cipher-text.properties
|
||||||
|
cipher.tool.properties.file=conf/security/cipher-tool.properties
|
||||||
|
secret.conf.properties.file=conf/security/secret-conf.properties
|
@ -0,0 +1,89 @@
|
|||||||
|
@echo off
|
||||||
|
REM Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
|
||||||
|
REM Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
REM or more contributor license agreements. See the NOTICE file
|
||||||
|
REM distributed with this work for additional information
|
||||||
|
REM regarding copyright ownership. The ASF licenses this file
|
||||||
|
REM to you under the Apache License, Version 2.0 (the
|
||||||
|
REM "License"); you may not use this file except in compliance
|
||||||
|
REM with the License. You may obtain a copy of the License at
|
||||||
|
REM
|
||||||
|
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
REM
|
||||||
|
REM Unless required by applicable law or agreed to in writing,
|
||||||
|
REM software distributed under the License is distributed on an
|
||||||
|
REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
REM KIND, either express or implied. See the License for the
|
||||||
|
REM specific language governing permissions and limitations
|
||||||
|
REM under the License.
|
||||||
|
|
||||||
|
rem ---------------------------------------------------------------------------
|
||||||
|
rem Startup script for the ciphertool
|
||||||
|
rem
|
||||||
|
rem Environment Variable Prerequisites
|
||||||
|
rem
|
||||||
|
rem CARBON_HOME Must point at your CARBON directory
|
||||||
|
rem
|
||||||
|
rem JAVA_HOME Must point at your Java Development Kit installation.
|
||||||
|
rem
|
||||||
|
rem JAVA_OPTS (Optional) Java runtime options
|
||||||
|
rem ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem Make sure prerequisite environment variables are set
|
||||||
|
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||||
|
echo The JAVA_HOME environment variable is not defined
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:gotJavaHome
|
||||||
|
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||||
|
goto okJavaHome
|
||||||
|
|
||||||
|
:noJavaHome
|
||||||
|
echo The JAVA_HOME environment variable is not defined correctly
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
echo NB: JAVA_HOME should point to a JDK/JRE
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:okJavaHome
|
||||||
|
rem check the CARBON_HOME environment variable
|
||||||
|
|
||||||
|
set CURRENT_DIR=%cd%
|
||||||
|
if not "%CARBON_HOME%" == "" goto gotHome
|
||||||
|
set CARBON_HOME=%CURRENT_DIR%
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
rem guess the home. Jump one directory up to check if that is the home
|
||||||
|
cd ..
|
||||||
|
set CARBON_HOME=%cd%
|
||||||
|
cd %CARBON_HOME%
|
||||||
|
|
||||||
|
:gotHome
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
rem set CARBON_HOME=%~sdp0..
|
||||||
|
set CARBON_HOME=%~sdp0..
|
||||||
|
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome
|
||||||
|
|
||||||
|
echo The CARBON_HOME environment variable is not defined correctly
|
||||||
|
echo This environment variable is needed to run this program
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:okHome
|
||||||
|
rem set the classes
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
rem loop through the libs and add them to the class path
|
||||||
|
cd "%CARBON_HOME%"
|
||||||
|
call ant -buildfile "%CARBON_HOME%\bin\build.xml" -q
|
||||||
|
set CARBON_CLASSPATH=.\conf
|
||||||
|
FOR %%c in ("%CARBON_HOME%\..\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\..\lib\%%~nc%%~xc"
|
||||||
|
FOR %%C in ("%CARBON_HOME%\repository\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\repository\lib\%%~nC%%~xC"
|
||||||
|
|
||||||
|
rem ----- Execute The Requested Command ---------------------------------------
|
||||||
|
echo Using CARBON_HOME: %CARBON_HOME%
|
||||||
|
echo Using JAVA_HOME: %JAVA_HOME%
|
||||||
|
set _RUNJAVA="%JAVA_HOME%\bin\java"
|
||||||
|
|
||||||
|
%_RUNJAVA% %JAVA_OPTS% -Dcarbon.home="%CARBON_HOME%" -cp "%CARBON_CLASSPATH%" org.wso2.ciphertool.CipherTool %*
|
||||||
|
endlocal
|
||||||
|
:end
|
@ -0,0 +1,127 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
|
||||||
|
# Licensed 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, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# ciphertool script for generating stub, skeleton and other required classes
|
||||||
|
#
|
||||||
|
# Environment Variable Prequisites
|
||||||
|
#
|
||||||
|
# CARBON_HOME Home of CARBON installation. If not set I will try
|
||||||
|
# to figure it out.
|
||||||
|
#
|
||||||
|
# JAVA_HOME Must point at your Java Development Kit installation.
|
||||||
|
#
|
||||||
|
# NOTE: Borrowed generously from Apache Tomcat startup scripts.
|
||||||
|
|
||||||
|
# if JAVA_HOME is not set we're not happy
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
echo "You must set the JAVA_HOME variable before running CARBON."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OS specific support. $var _must_ be set to either true or false.
|
||||||
|
cygwin=false;
|
||||||
|
darwin=false;
|
||||||
|
os400=false;
|
||||||
|
mingw=false;
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN*) cygwin=true;;
|
||||||
|
MINGW*) mingw=true;;
|
||||||
|
OS400*) os400=true;;
|
||||||
|
Darwin*) darwin=true
|
||||||
|
if [ -z "$JAVA_VERSION" ] ; then
|
||||||
|
JAVA_VERSION="CurrentJDK"
|
||||||
|
else
|
||||||
|
echo "Using Java version: $JAVA_VERSION"
|
||||||
|
fi
|
||||||
|
if [ -z "$JAVA_HOME" ] ; then
|
||||||
|
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# resolve links - $0 may be a softlink
|
||||||
|
PRG="$0"
|
||||||
|
|
||||||
|
while [ -h "$PRG" ]; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '.*/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG=`dirname "$PRG"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Get standard environment variables
|
||||||
|
PRGDIR=`dirname "$PRG"`
|
||||||
|
|
||||||
|
# Only set CARBON_HOME if not already set
|
||||||
|
[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||||
|
|
||||||
|
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $cygwin; then
|
||||||
|
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||||
|
[ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
|
||||||
|
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For OS400
|
||||||
|
if $os400; then
|
||||||
|
# Set job priority to standard for interactive (interactive - 6) by using
|
||||||
|
# the interactive priority - 6, the helper threads that respond to requests
|
||||||
|
# will be running at the same priority as interactive jobs.
|
||||||
|
COMMAND='chgjob job('$JOBNAME') runpty(6)'
|
||||||
|
system $COMMAND
|
||||||
|
|
||||||
|
# Enable multi threading
|
||||||
|
QIBM_MULTI_THREADED=Y
|
||||||
|
export QIBM_MULTI_THREADED
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Migwn, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $mingw ; then
|
||||||
|
[ -n "$CARBON_HOME" ] &&
|
||||||
|
CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
|
||||||
|
[ -n "$JAVA_HOME" ] &&
|
||||||
|
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||||
|
[ -n "$AXIS2_HOME" ] &&
|
||||||
|
CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
|
||||||
|
# TODO classpath?
|
||||||
|
fi
|
||||||
|
|
||||||
|
# update classpath
|
||||||
|
CARBON_CLASSPATH=""
|
||||||
|
for f in "$CARBON_HOME"/../lib/org.wso2.ciphertool*.jar
|
||||||
|
do
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$f
|
||||||
|
done
|
||||||
|
for h in "$CARBON_HOME"/../components/plugins/*.jar
|
||||||
|
do
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$h
|
||||||
|
done
|
||||||
|
CARBON_CLASSPATH=$CARBON_CLASSPATH:$CLASSPATH
|
||||||
|
|
||||||
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
if $cygwin; then
|
||||||
|
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
|
||||||
|
CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
|
||||||
|
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||||
|
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ----- Execute The Requested Command -----------------------------------------
|
||||||
|
|
||||||
|
$JAVA_HOME/bin/java -Dcarbon.home="$CARBON_HOME" -classpath "$CARBON_CLASSPATH" org.wso2.ciphertool.CipherTool $*
|
@ -0,0 +1,7 @@
|
|||||||
|
# this file contains the optional Ciphertool configuration parameters for it to work in non-Carbon environments
|
||||||
|
primary.key.location=repository/resources/security/wso2carbon.jks
|
||||||
|
primary.key.type=JKS
|
||||||
|
primary.key.alias=wso2carbon
|
||||||
|
cipher.text.properties.file=conf/security/cipher-text.properties
|
||||||
|
cipher.tool.properties.file=conf/security/cipher-tool.properties
|
||||||
|
secret.conf.properties.file=conf/security/secret-conf.properties
|
@ -0,0 +1,7 @@
|
|||||||
|
# this file contains the optional Ciphertool configuration parameters for it to work in non-Carbon environments
|
||||||
|
primary.key.location=repository/resources/security/wso2carbon.jks
|
||||||
|
primary.key.type=JKS
|
||||||
|
primary.key.alias=wso2carbon
|
||||||
|
cipher.text.properties.file=conf/security/cipher-text.properties
|
||||||
|
cipher.tool.properties.file=conf/security/cipher-tool.properties
|
||||||
|
secret.conf.properties.file=conf/security/secret-conf.properties
|
@ -0,0 +1,12 @@
|
|||||||
|
# Important: This properties file contains all the aliases to be used in carbon components. If any property need to be secured, you need to add alias name, file name and the xpath as follows:.
|
||||||
|
# The value goes as, the <file_name>//<xpath>,<true/false>
|
||||||
|
# where <file_name> - is the file (along with the file path) to be secured,
|
||||||
|
# <xpath> - is the xpath to the property value to be secured
|
||||||
|
# <true / false> - This is true if the last parameter in the xpath is parameter (starts with [ and ends with ]) and you want its value to be replaced with "password"
|
||||||
|
|
||||||
|
Carbon.Security.KeyStore.Password=conf/carbon.xml//Server/Security/KeyStore/Password,false
|
||||||
|
Carbon.Security.KeyStore.KeyPassword=conf/carbon.xml//Server/Security/KeyStore/KeyPassword,false
|
||||||
|
Carbon.Security.TrustStore.Password=conf/carbon.xml//Server/Security/TrustStore/Password,false
|
||||||
|
UserManager.AdminUser.Password=conf/user-mgt.xml//UserManager/Realm/Configuration/AdminUser/Password,false
|
||||||
|
Datasources.WSO2_CARBON_DB.Configuration.Password=conf/datasources/master-datasources.xml//datasources-configuration/datasources/datasource[name='WSO2_CARBON_DB']/definition[@type='RDBMS']/configuration/password,false
|
||||||
|
Server.Service.Connector.keystorePass=conf/tomcat/catalina-server.xml//Server/Service/Connector[@keystorePass],true
|
Loading…
Reference in new issue