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
Mike Smith
sslgen
Commits
ea6a107e
Commit
ea6a107e
authored
11 years ago
by
Michael J. Smith
Browse files
Options
Download
Email Patches
Plain Diff
Change PATH to DIR to prevent conflict with system PATH variable
parent
0a3aed79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
sslgen
sslgen
+5
-7
No files found.
sslgen
View file @
ea6a107e
...
...
@@ -3,10 +3,10 @@
key
()
{
echo
"Generating SSL key file..."
echo
"Making directory
${
PATH
}
"
mkdir
-p
${
PATH
}
echo
"Making directory
${
DIR
}
"
mkdir
-p
${
DIR
}
echo
"Generating key file
${
KEY
}
in
${
PATH
}
"
echo
"Generating key file
${
KEY
}
in
${
DIR
}
"
openssl genrsa
-out
${
KEY
}
2048
echo
"Changing permissions on key file to 600"
...
...
@@ -130,11 +130,9 @@ if [ $# -lt 2 ]; then
exit
1
fi
export
PATH
=
/bin:
$PATH
DOMAIN
=
$2
PATH
=
"/etc/ssl/
${
DOMAIN
}
"
BASE
=
"
${
PATH
}
/
${
DOMAIN
}
"
DIR
=
"/etc/ssl/
${
DOMAIN
}
"
BASE
=
"
${
DIR
}
/
${
DOMAIN
}
"
KEY
=
"
${
BASE
}
.key"
CSR
=
"
${
BASE
}
.csr"
CRT
=
"
${
BASE
}
.crt"
...
...
This diff is collapsed.
Click to expand it.
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