Skip to content

Commit e835763

Browse files
Merge pull request #63 from openequella/release/1.1.1
Release/1.1.1
2 parents c46a0fc + c09a25e commit e835763

11 files changed

+241
-138
lines changed

.github/workflows/ci.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: openEQUELLA Admin Console Launcer CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- release/**
9+
tags:
10+
- "**"
11+
pull_request:
12+
branches:
13+
- master
14+
- develop
15+
- release/**
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Gradle Cache
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.gradle/caches
28+
~/.gradle/wrapper
29+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+
restore-keys: |
31+
${{ runner.os }}-gradle-
32+
33+
- name: Set up JDK 1.8
34+
uses: actions/setup-java@v2
35+
with:
36+
distribution: adopt
37+
java-version: 8
38+
39+
- name: Build with Gradle
40+
run: ./gradlew build
41+
42+
- name: Save artefacts
43+
uses: actions/[email protected]
44+
with:
45+
name: Artefacts
46+
path: build/distributions
47+
48+
- name: Save Coverage Report
49+
uses: actions/[email protected]
50+
with:
51+
name: CoverageReport
52+
path: build/reports/tests/test
53+
54+
- name: Release
55+
uses: softprops/action-gh-release@v1
56+
if: startsWith(github.ref, 'refs/tags/')
57+
with:
58+
files: build/distributions/*
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+

.travis.yml

-30
This file was deleted.

NOTICE.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ the License.
1919

2020
| Category | License | Dependency | Notes |
2121
| --------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------- | ----------------------- |
22-
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | nebula.lint # 9.3.4 | <notextile></notextile> |
22+
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | nebula.lint # 16.26.0 | <notextile></notextile> |
2323
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | com.github.hierynomus.license # 0.15.0 | <notextile></notextile> |
2424
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | com.google.guava:guava # 27.0.1-jre | <notextile></notextile> |
25-
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | com.fasterxml.jackson.core:jackson-databind # 2.9.8 | <notextile></notextile> |
26-
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | org.jasypt:jasypt # 1.9.2 | <notextile></notextile> |
27-
| Eclipse Public License| [Eclipse Public License 1.0](http://www.eclipse.org/legal/epl-v10.html ) | junit:junit # 4.12 | <notextile></notextile> |
28-
| MIT License | [MIT License](http://www.opensource.org/licenses/mit-license.php) | org.slf4j:slf4j-api # 1.7.26 | <notextile></notextile> |
29-
| MIT License | [MIT License](http://www.opensource.org/licenses/mit-license.php) | org.slf4j:slf4j-simple # 1.6.4 | <notextile></notextile> |
25+
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | com.fasterxml.jackson.core:jackson-databind # 2.12.3 | <notextile></notextile> |
26+
| Apache | [ASF 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | org.jasypt:jasypt # 1.9.3 | <notextile></notextile> |
27+
| Eclipse Public License| [Eclipse Public License 1.0](http://www.eclipse.org/legal/epl-v10.html ) | junit:junit # 4.13.2 | <notextile></notextile> |
28+
| MIT License | [MIT License](http://www.opensource.org/licenses/mit-license.php) | org.slf4j:slf4j-api # 1.7.31 | <notextile></notextile> |
29+
| MIT License | [MIT License](http://www.opensource.org/licenses/mit-license.php) | org.slf4j:slf4j-simple # 1.7.31 | <notextile></notextile> |

README.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For development, you can run the app via:
1313
~$ ./gradlew run --console=verbose
1414
```
1515

16-
##Apereo Header validation
16+
## Apereo Header validation
1717
The gradle build includes a task which will check that each source file in the common and configurator projects has an Apereo
1818
license notice at the top of the file. This license is stored in `LICENSE` in the root of this repository.
1919
In order to apply the headers, run:
@@ -40,3 +40,44 @@ These packages will be produced as part of the standard build task.
4040
```
4141
-$ ./gradlew build
4242
```
43+
44+
## Adding Root CA Certificates
45+
If openEQUELLA is configured to use SSL with a certificate that is not recognized by Java, (such as with a self-signed certificate, an internal CA, smaller/lesser known third party CAs)
46+
then the admin-console-package will fail to log in to the institution because of this error displayed in the terminal window:
47+
48+
```
49+
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
50+
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
51+
unable to find valid certification path to requested target
52+
```
53+
54+
This is because the Java Keystore used by the admin console package does not recognize the Root CA certificate used to sign openEQUELLA's SSL certificate.
55+
56+
The admin-console-package uses its own copy of the JRE, in the `jdk8u242-b08-jre` folder.
57+
The keystore we need to update is within this folder, at the path `jdk8u242-b08-jre/lib/security/cacerts`.
58+
59+
The bundled JRE comes with a command line tool which you can use for updating these keystores, called `keytool`.
60+
This should work in Mac, Linux and Windows. It is stored in `jdk8u242-b08-jre/bin`.
61+
62+
**NOTE:**
63+
64+
If Java is installed on your system it will have its own version of `keystore`.
65+
You should use the one within the admin-console-package's bundled JRE rather than your system Java version, to ensure compatibility.
66+
67+
You will need a copy of the Root CA certificate used to sign your SSL certificate saved as a .pem file for the following command's `-file` argument.
68+
69+
`-alias` can be whatever you wish to call this key store entry.
70+
71+
`-storepass` must be `changeit` - unless you have specifically changed this password first,
72+
in which case you should use whatever it was set to.
73+
74+
```
75+
keytool -import -trustcacerts -keystore path/to/adminconsolepackage/jdk8u242-b08-jre/lib/security/cacerts -storepass changeit -alias giveYourCertANameHere -file path/to/rootCA.pem
76+
```
77+
78+
The command will display the certificate and prompt the user to `Trust this certificate? [no]:`. Type `yes` and hit Enter.
79+
If successful, the response will be:
80+
81+
Certificate was added to keystore.
82+
83+
Now close and reopen the admin-console-package and attempt to log into your openEQUELLA's admin console. The error should be gone and login should be successful.

build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java'
33
id 'application'
44
id 'base'
5-
id 'nebula.lint' version '9.3.4'
5+
id 'nebula.lint' version '16.26.0'
66
id 'com.github.hierynomus.license' version '0.15.0'
77
}
88

@@ -18,10 +18,10 @@ repositories {
1818
}
1919

2020
dependencies {
21-
implementation 'org.slf4j:slf4j-api:1.7.26'
22-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.2'
23-
implementation 'org.jasypt:jasypt:1.9.2'
24-
runtimeOnly 'org.slf4j:slf4j-simple:1.6.4'
21+
implementation 'org.slf4j:slf4j-api:1.7.31'
22+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
23+
implementation 'org.jasypt:jasypt:1.9.3'
24+
runtimeOnly 'org.slf4j:slf4j-simple:1.7.31'
2525
testImplementation "junit:junit:$junitVersion"
2626
}
2727

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
junitVersion=4.12
2-
artifactVersion=1.1.0
1+
junitVersion=4.13.2
2+
artifactVersion=1.1.1

gradle/wrapper/gradle-wrapper.jar

426 Bytes
Binary file not shown.
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon May 13 17:09:22 AEST 2019
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip
31
distributionBase=GRADLE_USER_HOME
42
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
54
zipStoreBase=GRADLE_USER_HOME
65
zipStorePath=wrapper/dists

gradlew

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844
APP_BASE_NAME=`basename "$0"`
2945

3046
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS='"-Xmx64m"'
47+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
3248

3349
# Use the maximum available, or set MAX_FD != -1 to use that value.
3450
MAX_FD="maximum"
@@ -109,8 +125,8 @@ if $darwin; then
109125
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110126
fi
111127

112-
# For Cygwin, switch paths to Windows format before running java
113-
if $cygwin ; then
128+
# For Cygwin or MSYS, switch paths to Windows format before running java
129+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
114130
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115131
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116132
JAVACMD=`cygpath --unix "$JAVACMD"`

0 commit comments

Comments
 (0)