Skip to content

Commit

Permalink
Bug 62039 - Distributed testing : Provide ability to use SSL
Browse files Browse the repository at this point in the history
Fix bad patching
Add keystore for tests
Bugzilla Id: 62039

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1822058 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pmouawad committed Jan 23, 2018
1 parent 8a01547 commit 36d73de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 42 deletions.
20 changes: 0 additions & 20 deletions bin/create-rmi-keystore.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,3 @@ rem
keytool -genkey -keyalg RSA -alias rmi -keystore rmi_keystore.jks -storepass changeit -validity 7 -keysize 2048

echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
@echo off

rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements. See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem 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, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem
keytool -genkey -keyalg RSA -alias rmi -keystore rmi_keystore.jks -storepass changeit -validity 7 -keysize 2048

echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
24 changes: 2 additions & 22 deletions bin/create-rmi-keystore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,9 @@
## The ASF 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, 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.
##
keytool -genkey -keyalg RSA -alias rmi -keystore rmi_keystore.jks -storepass changeit -validity 7 -keysize 2048

echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
#!/bin/sh

## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF 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, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -37,4 +17,4 @@ echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it i
##
keytool -genkey -keyalg RSA -alias rmi -keystore rmi_keystore.jks -storepass changeit -validity 7 -keysize 2048

echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
echo "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
Binary file added bin/rmi_keystore.jks
Binary file not shown.
2 changes: 2 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,7 @@ run JMeter unless all the JMeter jars are added.
<include name="${dest.jar.jmeter}/user.properties"/>
<!-- Exclude any files that might be present from testing the release -->
<exclude name="${dest.jar.jmeter}/*.log"/>
<exclude name="${dest.jar.jmeter}/rmi_keystore.jks"/>
<include name="${dest.jar.jmeter}/examples/**"/>
<include name="${dest.jar.jmeter}/templates/*.dtd"/>
<!-- report-templates files which need to have native eol -->
Expand Down Expand Up @@ -1340,6 +1341,7 @@ run JMeter unless all the JMeter jars are added.
<include name="${dest.jar.jmeter}/proxyserver.jks"/>
<!-- Exclude any files that might be present from testing the release -->
<exclude name="${dest.jar.jmeter}/*.log"/>
<exclude name="${dest.jar.jmeter}/rmi_keystore.jks"/>
<!-- report-template files non native -->
<include name="${dest.jar.jmeter}/report-template/content/pages/*.png"/>
<include name="${dest.jar.jmeter}/report-template/sbadmin2*/**"/>
Expand Down

0 comments on commit 36d73de

Please sign in to comment.