Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
certcheck
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
legi
soft
trokata
certcheck
Commits
dee2fde6
Commit
dee2fde6
authored
1 year ago
by
Gabriel Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Stupid, grep without file
parent
bc63090e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#144559
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
certcheck
+4
-4
4 additions, 4 deletions
certcheck
with
4 additions
and
4 deletions
certcheck
+
4
−
4
View file @
dee2fde6
...
...
@@ -5,7 +5,7 @@
export
PATH
=
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
export
LANG
=
C
export
VERSION
=
0.3.
5
export
VERSION
=
0.3.
6
function
usage
()
{
cat
<<
END_USAGE
...
...
@@ -107,10 +107,10 @@ case "${action}" in
text|txt
)
[
-s
"
${
CRT
}
"
]
||
say_warning
"missing
${
CRT
}
"
grep
-q
--
'-----BEGIN PRIVATE KEY-----'
&&
say_warning
"
give the public and not the private key!
"
grep
-q
--
'-----BEGIN CERTIFICATE-----'
||
say_warning
"your key is
no
t in PEM format!"
grep
-q
--
'-----BEGIN PRIVATE KEY-----'
"
${
CRT
}
"
&&
say_warning
'
give the public and not the private key!
'
grep
-q
--
'-----BEGIN CERTIFICATE-----'
"
${
CRT
}
"
||
say_warning
"your key is
n'
t in PEM format!"
openssl x509
-noout
-text
-in
"
${
CRT
}
"
\
|
e
grep
'(Subject|Not Before|Not After[[:space:]]|DNS|Issuer):'
\
|
grep
-E
'(Subject|Not Before|Not After[[:space:]]|DNS|Issuer):'
\
|
sed
-e
's/^\s*//g;'
\
|
sort
-r
;;
...
...
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