Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bundle_certs
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
bundle_certs
Commits
fa40e935
Commit
fa40e935
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Added lint target, updated documentation.
parent
e0c1e9d7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+5
-2
5 additions, 2 deletions
Makefile
README.rst
+5
-10
5 additions, 10 deletions
README.rst
with
10 additions
and
12 deletions
Makefile
+
5
−
2
View file @
fa40e935
.PHONY
:
test clean
.PHONY
:
test clean lint
lint
:
/bin/sh
-en
bundle_certs
clean
:
clean
:
if
[
-f
.server.pid
]
&&
[
-d
"/proc/
$$(
cat .server.pid
)
"
]
;
then
kill
"
$$(
cat .server.pid
)
"
;
fi
if
[
-f
.server.pid
]
&&
[
-d
"/proc/
$$(
cat .server.pid
)
"
]
;
then
kill
"
$$(
cat .server.pid
)
"
;
fi
...
@@ -49,7 +52,7 @@ clean:
...
@@ -49,7 +52,7 @@ clean:
.testcerts/bundle.crt
:
.testcerts/intermediates.crt .testcerts/server.crt
.testcerts/bundle.crt
:
.testcerts/intermediates.crt .testcerts/server.crt
./bundle_certs .testcerts/
*
>
.testcerts/bundle.crt
./bundle_certs .testcerts/
*
>
.testcerts/bundle.crt
test
:
.testcerts/bundle.crt .testcerts/root.crt .testcerts/server.key
test
:
lint
.testcerts/bundle.crt .testcerts/root.crt .testcerts/server.key
openssl s_server
-cert
.testcerts/bundle.crt
-key
.testcerts/server.key
-quiet
-www
-no_dhe
&
echo
"
$$
!"
>
.server.pid
openssl s_server
-cert
.testcerts/bundle.crt
-key
.testcerts/server.key
-quiet
-www
-no_dhe
&
echo
"
$$
!"
>
.server.pid
test
"
$$(
curl --fail --cacert .testcerts/root.crt --write-out '%{ssl_verify_result
}
' --silent --output /dev/null https://localhost:4433)"
=
"0"
test
"
$$(
curl --fail --cacert .testcerts/root.crt --write-out '%{ssl_verify_result
}
' --silent --output /dev/null https://localhost:4433)"
=
"0"
if
[
-f
.server.pid
]
&&
[
-d
"/proc/
$$(
cat .server.pid
)
"
]
;
then
kill
"
$$(
cat .server.pid
)
"
;
fi
if
[
-f
.server.pid
]
&&
[
-d
"/proc/
$$(
cat .server.pid
)
"
]
;
then
kill
"
$$(
cat .server.pid
)
"
;
fi
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
5
−
10
View file @
fa40e935
...
@@ -55,17 +55,12 @@ Shell functions
...
@@ -55,17 +55,12 @@ Shell functions
subject hash).
subject hash).
- bundle_certs: See Usage section above.
- bundle_certs: See Usage section above.
Development
-----------
Testing
To ease development :code:`make clean`, :code:`make lint` and :code:`make test`
-------
are available. It's recommended to add :code:`make lint` and :code:`make test`
to to your Git pre-commit and pre-push hooks accourdingly.
Simply run:
.. code:: shell
make test
I suggest adding the test as a pre-push Git hook since it is quite fast.
License
License
-------
-------
...
...
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