Skip to content

Commit

Permalink
Merge pull request #16 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.5.1
  • Loading branch information
andyone authored Aug 7, 2018
2 parents 1fcc7c7 + 704d8b9 commit 9b8cd37
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ before_install:
- tar xf shellcheck-latest.linux.x86_64.tar.xz
- ./shellcheck-latest/shellcheck --version
- docker pull "$IMAGE"
- wget https://raw.githubusercontent.com/essentialkaos/perfecto/master/perfecto-docker
- wget https://kaos.sh/perfecto/perfecto-docker
- chmod +x perfecto-docker

script:
Expand Down
10 changes: 9 additions & 1 deletion SOURCES/webkaos-utils
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
APP="WEBKAOS Utils"

# Utility version
VER="1.5.0"
VER="1.5.1"

########################################################################################

Expand Down Expand Up @@ -173,13 +173,15 @@ csrInfo() {
cname=$(echo "$subject" | cut -f6 -d"," | cut -f2 -d"=" | cut -f1 -d"/")
email=$(echo "$subject" | cut -f6 -d"," | cut -f3 -d"=")

show ""
show "${CL_BOLD}Country Name:${CL_NORM} ${country:---empty--}"
show "${CL_BOLD}State or Province Name:${CL_NORM} ${state:---empty--}"
show "${CL_BOLD}Locality Name:${CL_NORM} ${locality:---empty--}"
show "${CL_BOLD}Organization:${CL_NORM} ${org:---empty--}"
show "${CL_BOLD}Organizational Unit:${CL_NORM} ${unit:---empty--}"
show "${CL_BOLD}Common Name:${CL_NORM} ${cname:---empty--}"
show "${CL_BOLD}Email address:${CL_NORM} ${email:---empty--}"
show ""
}

# Check OCSP stapling
Expand Down Expand Up @@ -223,6 +225,10 @@ genCSR() {
local host="${1//./_}"

openssl req -new -newkey rsa:4096 -nodes -sha256 -keyout "${host}.key" -out "${host}.csr"

chmod 600 "${host}.key" "${host}.csr"

show "Certificate Signing Request successfully generated as ${host}.csr (key: ${host}.key)" $GREEN
}

# Generate HPKP for some request
Expand Down Expand Up @@ -293,6 +299,8 @@ generateOCSPFile() {
return 1
fi

chmod 600 "$output"

show "OCSP stapling file saved as $output" $GREEN

return 0
Expand Down
5 changes: 4 additions & 1 deletion webkaos-utils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Summary: Helpers for working with webkaos server
Name: webkaos-utils
Version: 1.5.0
Version: 1.5.1
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand Down Expand Up @@ -47,6 +47,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Tue Aug 07 2018 Anton Novojilov <[email protected]> - 1.5.1-0
- Generating files with more strict permissions

* Mon Aug 06 2018 Anton Novojilov <[email protected]> - 1.5.0-0
- Added output name normalization for csr-gen command

Expand Down

0 comments on commit 9b8cd37

Please sign in to comment.