Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
ssl-ca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
ssl-ca
Commits
86d9c4cf
Commit
86d9c4cf
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Save serial to not repeat serial numbers (just happened to me).
parent
ec782bb1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+1
-1
1 addition, 1 deletion
Makefile
ssl-ca
+8
-1
8 additions, 1 deletion
ssl-ca
with
10 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
86d9c4cf
...
@@ -8,4 +8,5 @@ openssl.cnf
...
@@ -8,4 +8,5 @@ openssl.cnf
CA.key
CA.key
CA.crt
CA.crt
CA.p12
CA.p12
CA.srl
.server.pid
.server.pid
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
86d9c4cf
...
@@ -5,7 +5,7 @@ install:
...
@@ -5,7 +5,7 @@ install:
chmod
755 /usr/local/bin/ssl-ca
chmod
755 /usr/local/bin/ssl-ca
clean
:
clean
:
rm
-rf
openssl.cnf certs keys CA.key CA.crt CA.p12 .server.pid
rm
-rf
openssl.cnf certs keys CA.key CA.crt CA.p12
CA.srl
.server.pid
test
:
clean
test
:
clean
./ssl-ca init
./ssl-ca init
...
...
This diff is collapsed.
Click to expand it.
ssl-ca
+
8
−
1
View file @
86d9c4cf
...
@@ -15,6 +15,7 @@ default_md = sha256
...
@@ -15,6 +15,7 @@ default_md = sha256
email_in_dn = no
email_in_dn = no
RANDFILE = /dev/urandom
RANDFILE = /dev/urandom
database = /dev/null
database = /dev/null
serial = serial
[ req ]
[ req ]
distinguished_name = req_distinguished_name
distinguished_name = req_distinguished_name
...
@@ -58,6 +59,12 @@ init () {
...
@@ -58,6 +59,12 @@ init () {
else
else
echo
"
$config
"
>
"openssl.cnf"
echo
"
$config
"
>
"openssl.cnf"
fi
fi
if
[
-e
CA.srl
]
then
echo
CA.srl already exists, skipping.
else
echo
1000
>
CA.srl
fi
if
[
-e
CA.key
]
if
[
-e
CA.key
]
then
then
echo
CA.key already exists, skipping.
echo
CA.key already exists, skipping.
...
@@ -120,7 +127,7 @@ sign_key () {
...
@@ -120,7 +127,7 @@ sign_key () {
-in
"
$csr
"
\
-in
"
$csr
"
\
-out
"certs/
$1
"
\
-out
"certs/
$1
"
\
-CA
CA.crt
\
-CA
CA.crt
\
-
set_
serial
$seed
\
-
CA
serial
CA.srl
\
-extensions
v3_req
\
-extensions
v3_req
\
-extfile
openssl.cnf
\
-extfile
openssl.cnf
\
-days
3650
\
-days
3650
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment