Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
letsencrypt.sh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
letsencrypt.sh
Commits
4fefa43e
Commit
4fefa43e
authored
Dec 14, 2015
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use sha in openssl instead of shasum, fixes #42
parent
62037de0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
letsencrypt.sh
letsencrypt.sh
+1
-1
No files found.
letsencrypt.sh
View file @
4fefa43e
...
...
@@ -132,7 +132,7 @@ init_system() {
pubExponent64
=
"
$(
printf
"%06x"
"
$(
openssl rsa
-in
"
${
PRIVATE_KEY
}
"
-noout
-text
|
grep
publicExponent |
head
-1
|
cut
-d
' '
-f2
)
"
| hex2bin | urlbase64
)
"
pubMod64
=
"
$(
printf
'%s'
"
$(
openssl rsa
-in
"
${
PRIVATE_KEY
}
"
-noout
-modulus
|
cut
-d
'='
-f2
)
"
| hex2bin | urlbase64
)
"
thumbprint
=
"
$(
printf
'%s'
"
$(
printf
'%s'
'{"e":"'
"
${
pubExponent64
}
"
'","kty":"RSA","n":"'
"
${
pubMod64
}
"
'"}'
|
shasum
-a
256 |
awk
'{print $1}'
)
"
| hex2bin | urlbase64
)
"
thumbprint
=
"
$(
printf
'%s'
"
$(
printf
'%s'
'{"e":"'
"
${
pubExponent64
}
"
'","kty":"RSA","n":"'
"
${
pubMod64
}
"
'"}'
|
openssl sha
-sha256
)
"
| hex2bin | urlbase64
)
"
# If we generated a new private key in the step above we have to register it with the acme-server
if
[[
"
${
register
}
"
=
"1"
]]
;
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