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
d26adef9
Commit
d26adef9
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Added Requirements, Usage, Shell functions and Test sections to the README.
parent
e4063852
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+42
-2
42 additions, 2 deletions
README.rst
with
42 additions
and
2 deletions
README.rst
+
42
−
2
View file @
d26adef9
...
...
@@ -9,7 +9,21 @@ Installation
This script can be used in 2 ways. The 1st is copying to
:code:`/usr/local/bin/bundle_certs`, marking as executable and calling the
script. The 2nd is copying the file to somewhere under you home directory and
sourcing it in your shell's rc file (like .bashrc, .kshrc etc.).
sourcing it in your shell's rc file (like .bashrc, .kshrc etc.). With the 2nd
way you gain a few shell function for handling SSL certificates (listed below).
Requirements
------------
For regular use:
- A POSIX compatible shell.
- OpenSSL.
- AWK.
For testing/ development purposes, all of the above, plus:
- Make.
- Curl.
Usage
-----
...
...
@@ -19,4 +33,30 @@ example:
.. code:: shell
bundle_certs *.crt
bundle_certs *.crt > bundle.crt
The outputed bundle is WITHOUT the root (CA) certificate.
Shell functions
---------------
- subject_hash: Returns OpenSSL's hash of the cert's subject.
- issuer_hash: Returns OpenSSL's hash of the cert's issuer.
- find_root_cert: Return the filename of the (first) root (self-signed)
certificate of the filenames passed as parameters.
- find_cert_by_hash: Gets a hash and a list of filenames, returns the
filename of the certificate with that subject hash.
- unbudle_cert: Gets a filename, creates a directory named :code:`certs` which
contains all of the individual certs in the file (the files are named by their
subject hash).
- bundle_certs: See Usage section above.
Testing
-------
Simply run:
.. code:: shell
make test
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