Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
b30927be
Commit
b30927be
authored
Feb 12, 2021
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell/caucase.sh: Add support for CRL PEM chunk iteration.
parent
d30818ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
shell/caucase.sh
shell/caucase.sh
+8
-0
No files found.
shell/caucase.sh
View file @
b30927be
...
@@ -229,6 +229,10 @@ _matchPrivateKeyBoundary () {
...
@@ -229,6 +229,10 @@ _matchPrivateKeyBoundary () {
return
1
return
1
}
}
_matchCRLBoundary
()
{
test
"
$1
"
=
'-----END X509 CRL-----'
}
_forEachPEM
()
{
_forEachPEM
()
{
# Iterate over components of a PEM file, piping each to <command>
# Iterate over components of a PEM file, piping each to <command>
# Usage: <type tester> <command> [<arg> ...] < pem
# Usage: <type tester> <command> [<arg> ...] < pem
...
@@ -263,6 +267,10 @@ alias forEachPrivateKey='_forEachPEM _matchPrivateKeyBoundary'
...
@@ -263,6 +267,10 @@ alias forEachPrivateKey='_forEachPEM _matchPrivateKeyBoundary'
# Iterate over private key of a PEM file, piping each to <command>
# Iterate over private key of a PEM file, piping each to <command>
# Usage: <command> [<arg> ...] < pem
# Usage: <command> [<arg> ...] < pem
alias
foreachCRL
=
'_forEachPEM _matchCRLBoundary'
# Iterate over CRLs of a PEM file, piping each to <command>
# Usage: <command> [<arg> ...] < pem
alias
pem2fingerprint
=
'openssl x509 -fingerprint -noout'
alias
pem2fingerprint
=
'openssl x509 -fingerprint -noout'
pemFingerprintIs
()
{
pemFingerprintIs
()
{
...
...
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