Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b556908c
Commit
b556908c
authored
Jul 12, 2023
by
sg1888
Browse files
Modified ECC file test
parent
e69a19db
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/panos.sh
View file @
b556908c
...
...
@@ -137,16 +137,11 @@ panos_deploy() {
_ckey
=
"
$2
"
_cfullchain
=
"
$5
"
# VALID ECC KEY CHECK
keysuffix
=
$(
printf
'%s'
"
$_ckey
"
|
tail
-c
8
)
if
[
"
$keysuffix
"
=
"_ecc.key"
]
&&
[
!
-f
"
$_ckey
"
]
;
then
_debug
"The ECC key
$_ckey
doesn't exist. Attempting to strip '_ecc' from the key name"
_ckey
=
$(
echo
"
$_ckey
"
|
sed
's/\(.*\)_ecc.key$/\1.key/g'
)
if
[
!
-f
"
$_ckey
"
]
;
then
_err
"Unable to find a valid key. Try issuing the certificate using RSA (non-ECC) encryption."
# VALID FILE CHECK
if
[
!
-f
"
$_ckey
"
]
||
[
!
-f
"
$_cfullchain
"
]
;
then
_err
"Unable to find a valid key and/or cert. If this is an ECDSA/ECC cert, use the --ecc flag when deploying."
return
1
fi
fi
# PANOS_HOST
if
[
"
$PANOS_HOST
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment