Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
sysadmin
/
acme-ssl
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a8faf243
authored
Nov 25, 2016
by
Никита Миропольский
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sha1 всё равно не поддерживается
1 parent
d4025f0f
Pipeline
#2009
for
a8faf243
skipped
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
acme-init
acme-init
View file @
a8faf24
...
...
@@ -61,15 +61,6 @@ fi
# вычисляем версию
OPENSSL_VERSION
=
$(${
OPENSSL
}
version
)
# для старых версий выбираем sha1
if
[[
"OPENSSL_VERSION"
<
"OpenSSL 0.9.8"
]]
;
then
OPT_DIGEST
=
"-sha1"
else
OPT_DIGEST
=
"-sha256"
fi
echo
"Using
${
OPT_DIGEST
}
digest."
# создаём необходимые сертификаты
$OPENSSL
genrsa 4096 >
$ACMEDIR
/account.key
$OPENSSL
genrsa 4096 >
$ACMEDIR
/site.key
...
...
@@ -99,7 +90,7 @@ else
>>
$ACMEDIR
/openssl.cnf
$OPENSSL
req
\
-new
\
$OPT_DIGEST
\
-sha256
\
-key
$ACMEDIR
/site.key
\
-subj
"/CN=
$PRIMARY_DOMAIN
"
\
-reqexts SAN
\
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment