Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
74ec3d96
Commit
74ec3d96
authored
May 01, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssl: there is no need to use -des3 in key generation if we're just going to remove the passphrase
thanks @konklone for discussion
parent
532c9aa7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mail.sh
scripts/mail.sh
+1
-3
No files found.
scripts/mail.sh
View file @
74ec3d96
...
...
@@ -210,9 +210,7 @@ tools/editconf.py /etc/dovecot/conf.d/10-ssl.conf \
# Create a self-signed certifiate.
mkdir
-p
$STORAGE_ROOT
/ssl
if
[
!
-f
$STORAGE_ROOT
/ssl/ssl_certificate.pem
]
;
then
openssl genrsa
-des3
-passout
pass:x
-out
/tmp/server.key 2048
# create key, but it has a password...
openssl rsa
-passin
pass:x
-in
/tmp/server.key
-out
$STORAGE_ROOT
/ssl/ssl_private_key.pem
# remove password and save it to the right location
rm
/tmp/server.key
# remove temporary password-laden key
openssl genrsa
-out
$STORAGE_ROOT
/ssl/ssl_private_key.pem 2048
openssl req
-new
-key
$STORAGE_ROOT
/ssl/ssl_private_key.pem
-out
$STORAGE_ROOT
/ssl/ssl_cert_sign_req.csr
\
-subj
"/C=/ST=/L=/O=/CN=
$PUBLIC_HOSTNAME
"
openssl x509
-req
-days
365
\
...
...
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