Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
902db810
Commit
902db810
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Update key checks
parent
a3455877
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/check-apt-key.sh
+34
-20
34 additions, 20 deletions
tests/check-apt-key.sh
with
34 additions
and
20 deletions
tests/check-apt-key.sh
+
34
−
20
View file @
902db810
...
...
@@ -2,12 +2,12 @@
#Verify with the key fatch from https://ftp-master.debian.org/keys.html
#---------------------------------------------------------------------------
#"Debian Archive Automatic Signing Key (
8/jessie
) <ftpmaster@debian.org>"
#"Debian Archive Automatic Signing Key (
9/stretch
) <ftpmaster@debian.org>"
JESSIE
ARCHIVEKEY
=
"
126C 0D24 BD8A 2942 CC7D F8AC 7638 D044 2B90 D010
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Archive Automatic Signing Key (
8/jessie
) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
STRETCH
ARCHIVEKEY
=
"
E1CF 20DD FFE4 B89E 8026 58F1 E0B1 1894 F66A EC98
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Archive Automatic Signing Key (
9/stretch
) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$
JESSIE
ARCHIVEKEY
"
]
;
then
if
[
"
$CHECKTMP
"
==
"
$
STRETCH
ARCHIVEKEY
"
]
;
then
echo
Good
:
else
...
...
@@ -16,12 +16,12 @@ else
fi
#---------------------------------------------------------------------------
#"Debian Security Archive Automatic Signing Key (
8/jessie
) <ftpmaster@debian.org>"
#"Debian Security Archive Automatic Signing Key (
9/stretch
) <ftpmaster@debian.org>"
JESSIE
SECURITYKEY
=
"
D211 6914 1CEC D440 F2EB 8DDA 9D6D 8F6B C857 C906
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Security Archive Automatic Signing Key (
8/jessie
) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
STRETCH
SECURITYKEY
=
"
6ED6 F5CB 5FA6 FB2F 460A E88E EDA0 D238 8AE2 2BA9
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Security Archive Automatic Signing Key (
9/stretch
) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$
JESSIE
SECURITYKEY
"
]
;
then
if
[
"
$CHECKTMP
"
==
"
$
STRETCH
SECURITYKEY
"
]
;
then
echo
Good
:
else
...
...
@@ -30,12 +30,26 @@ else
fi
#---------------------------------------------------------------------------
#"
Jessie
Stable Release Key <debian-release@lists.debian.org>"
#"
Debian
Stable Release Key
(9/stretch)
<debian-release@lists.debian.org>"
JESSIE
STABLEKEY
=
"
75DD C3C4 A499 F1A1 8CB5 F3C8 CBF8 D6FD 518E 17E1
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"
Jessie
Stable Release Key <debian-release@lists.debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
STRETCH
STABLEKEY
=
"
067E 3C45 6BAE 240A CEE8 8F6F EF0F 382A 1A7B 6500
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"
Debian
Stable Release Key
(9/stretch)
<debian-release@lists.debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$JESSIESTABLEKEY
"
]
;
then
if
[
"
$CHECKTMP
"
==
"
$STRETCHSTABLEKEY
"
]
;
then
echo
Good
:
else
echo
bad
exit
1
fi
#---------------------------------------------------------------------------
#"Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
JESSIEARCHIVEKEY
=
" 126C 0D24 BD8A 2942 CC7D F8AC 7638 D044 2B90 D010"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$JESSIEARCHIVEKEY
"
]
;
then
echo
Good
:
else
...
...
@@ -44,12 +58,12 @@ else
fi
#---------------------------------------------------------------------------
#"Debian Archive Automatic Signing Key (
6.0/squeez
e) <ftpmaster@debian.org>"
#"Debian
Security
Archive Automatic Signing Key (
8/jessi
e) <ftpmaster@debian.org>"
SQUEEZEARCHIVEKEY
=
" 9FED 2BCB DCD2 9CDF 7626 78CB AED4 B06F 4730 41FA
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian Archive Automatic Signing Key (
6.0/squeez
e) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
JESSIESECURITYKEY
=
" D211 6914 1CEC D440 F2EB 8DDA 9D6D 8F6B C857 C906
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"Debian
Security
Archive Automatic Signing Key (
8/jessi
e) <ftpmaster@debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$
SQUEEZEARCHIVE
KEY
"
]
;
then
if
[
"
$CHECKTMP
"
==
"
$
JESSIESECURITY
KEY
"
]
;
then
echo
Good
:
else
...
...
@@ -58,12 +72,12 @@ else
fi
#---------------------------------------------------------------------------
#"
Squeez
e Stable Release Key <debian-release@lists.debian.org>"
#"
Jessi
e Stable Release Key <debian-release@lists.debian.org>"
SQUEEZ
ESTABLEKEY
=
"
0E4E DE2C 7F3E 1FC0 D033 800E 6448 1591 B983 21F9
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"
Squeez
e Stable Release Key <debian-release@lists.debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
JESSI
ESTABLEKEY
=
"
75DD C3C4 A499 F1A1 8CB5 F3C8 CBF8 D6FD 518E 17E1
"
CHECKTMP
=
$(
apt-key finger |
grep
-B
1
"
Jessi
e Stable Release Key <debian-release@lists.debian.org>"
|
head
-n1
|
awk
-F
'='
'{printf $2}'
)
if
[
"
$CHECKTMP
"
==
"
$
SQUEEZ
ESTABLEKEY
"
]
;
then
if
[
"
$CHECKTMP
"
==
"
$
JESSI
ESTABLEKEY
"
]
;
then
echo
Good
:
else
...
...
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