Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
a6014bf0
Commit
a6014bf0
authored
Aug 24, 2016
by
neil
Browse files
support sha1
parent
d4d1f0f4
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
a6014bf0
...
...
@@ -334,11 +334,11 @@ _digest() {
outputhex="$2"
if
[
"
$alg
"
=
"sha256"
]
;
then
if [ "$alg" = "sha256" ]
|| [ "$alg" = "sha1" ]
; then
if [ "$outputhex" ] ; then
echo
$(
openssl dgst
-
sha256
-hex
|
cut
-d
=
-f
2
)
echo $(openssl dgst -
$alg
-hex | cut -d = -f 2)
else
openssl dgst
-
sha256
-binary
| _base64
openssl dgst -
$alg
-binary | _base64
fi
else
_err "$alg is not supported yet"
...
...
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