Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
9965f0af
Commit
9965f0af
authored
7 years ago
by
Zoltan Mathe
Browse files
Options
Downloads
Patches
Plain Diff
remove CAs scripts
parent
9ea5668e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/genAllCas.sh
+0
-22
0 additions, 22 deletions
scripts/genAllCas.sh
scripts/genRevokedCerts.sh
+0
-15
0 additions, 15 deletions
scripts/genRevokedCerts.sh
with
0 additions
and
37 deletions
scripts/genAllCas.sh
deleted
100644 → 0
+
0
−
22
View file @
9ea5668e
#!/bin/bash
gsCerts
=
/etc/grid-security/certificates
allF
=
"/opt/dirac/etc/grid-security/cas.pem"
copiedCAs
=
0
invalidCAs
=
0
echo
"Copying CA certificates into
$allF
"
for
cert
in
$gsCerts
/
*
.0
do
ossle
=
"openssl x509 -noout -in
${
cert
}
"
if
${
ossle
}
-checkend
3600
;
then
openssl x509
-in
${
cert
}
>>
$allF
.gen
copiedCAs
=
`
expr
"
${
copiedCAs
}
"
+
"1"
`
else
echo
" - CA
${
cert
}
is expired"
invalidCAs
=
`
expr
"
${
invalidCAs
}
"
+
"1"
`
fi
done
echo
" + There are
${
invalidCAs
}
invalid CA certificates in
$gsCerts
"
echo
" + Copied
${
copiedCAs
}
CA certificates into
$allF
"
mv
$allF
.gen
$allF
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/genRevokedCerts.sh
deleted
100644 → 0
+
0
−
15
View file @
9ea5668e
#!/bin/bash
gsCerts
=
/etc/grid-security/certificates
allF
=
"/opt/dirac/etc/grid-security/allRevokedCerts.pem"
copiedCAs
=
0
invalidCAs
=
0
echo
"Copying revoked certificates into
$allF
"
for
cert
in
$gsCerts
/
*
.r0
do
openssl crl
-in
${
cert
}
>>
$allF
.gen
copiedCAs
=
`
expr
"
${
copiedCAs
}
"
+
"1"
`
done
echo
" + Copied
${
copiedCAs
}
revoked certificates into
$allF
"
mv
$allF
.gen
$allF
\ No newline at end of file
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