Merge pull request #90 from a-mugica/patch-1
Update to xo-install.sh to allow use of ECC/ECDSA certificates
This commit is contained in:
@@ -968,8 +968,8 @@ function CheckSystemd {
|
|||||||
# do not let the user define non functional cert/key pair
|
# do not let the user define non functional cert/key pair
|
||||||
function CheckCertificate {
|
function CheckCertificate {
|
||||||
if [[ "$HTTPS" == "true" ]]; then
|
if [[ "$HTTPS" == "true" ]]; then
|
||||||
local CERT="$(runcmd_stdout "openssl x509 -modulus -noout -in $PATH_TO_HTTPS_CERT | openssl md5")"
|
local CERT="$(runcmd_stdout "openssl x509 -pubkey -noout -in $PATH_TO_HTTPS_CERT | openssl md5")"
|
||||||
local KEY="$(runcmd_stdout "openssl rsa -modulus -noout -in $PATH_TO_HTTPS_KEY | openssl md5")"
|
local KEY="$(runcmd_stdout "openssl pkey -pubout -in $PATH_TO_HTTPS_KEY -outform PEM | openssl md5")"
|
||||||
if [[ "$CERT" != "$KEY" ]]; then
|
if [[ "$CERT" != "$KEY" ]]; then
|
||||||
echo
|
echo
|
||||||
printinfo "$PATH_TO_HTTPS_CERT:"
|
printinfo "$PATH_TO_HTTPS_CERT:"
|
||||||
|
Reference in New Issue
Block a user