Skip to content

Commit

Permalink
Add support for key activation on remote KME zone (TODO test and doc)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Prévost committed Feb 7, 2024
1 parent faeac93 commit fe3dce0
Show file tree
Hide file tree
Showing 31 changed files with 834 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ rustls-pemfile = "2.0.0"
log = "0.4.20"
simple_logger = "4.3.3"
notify = "6.1.1"
clap = { version = "4.4.18", features = ["derive"] }
reqwest = { version = "0.11.24" , features = ["native-tls", "blocking", "json"] }

[dev-dependencies]
assert_cmd = "2.0.12"
reqwest = {version = "0.11.23", features = ["native-tls"]}
reqwest = {version = "0.11.24", features = ["native-tls"]}
serial_test = "2.0.0"
const_format = "0.2.32"
30 changes: 30 additions & 0 deletions certs/zone2/CA-zone2.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFGTCCAwGgAwIBAgIUKhp/O8QyH/mEdqwvDk4CGu6RrnowDQYJKoZIhvcNAQEL
BQAwIzEhMB8GA1UEAwwYUm9vdCBDQSBmb3IgS01FIGluIHpvbmUyMB4XDTI0MDIw
NzA5NTcwNVoXDTM0MDIwNDA5NTcwNVowIzEhMB8GA1UEAwwYUm9vdCBDQSBmb3Ig
S01FIGluIHpvbmUyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0kE/
jcYF4GC6kE9cG+1y2J8q4oiPfuNxTCdLceXPJqzFkNB9HJgdumfAhfUEseC8q+iB
HohVT/y6RMoX2ZnsrdqMv8mC9r14OQiL2P2tdeQhitePlwcQINLnlEPnf2rPlKAQ
jXZYV6YpIVsBWwsRmmQAPv5tpGHuxeV/NzrkMX0X2d5JNGS2WzkuHApD5CS79m1d
rHHEMx1qzObdz8QoIyv0UgeYDyWtONCY/d1Rs0YgWg75reDxQ41e6oa+FwthOQ2x
2chE5f2NvKRGy5KZLlS42oh0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ae4dBInZptenf
YAbEDdItcZ/PBdwOoVv6HO7jgPlGsoEOafrF7j56oUiKvuIkbpCspOwyUU8MVUqy
gZgOYWjXTW4WZZmyw0Ieh9JvWCyKpYIKUUeEnILGn7YV0fbaopz9OqQ5waZibo7l
1EYvq7zJyBDsV9Z/jw==
-----END CERTIFICATE-----
26 changes: 26 additions & 0 deletions certs/zone2/CA-zone2.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIEaDCCAlACAQAwIzEhMB8GA1UEAwwYUm9vdCBDQSBmb3IgS01FIGluIHpvbmUy
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0kE/jcYF4GC6kE9cG+1y
2J8q4oiPfuNxTCdLceXPJqzFkNB9HJgdumfAhfUEseC8q+iBHohVT/y6RMoX2Zns
rdqMv8mC9r14OQiL2P2tdeQhitePlwcQINLnlEPnf2rPlKAQjXZYV6YpIVsBWwsR
mmQAPv5tpGHuxeV/NzrkMX0X2d5JNGS2WzkuHApD5CS79m1drHHEMx1qzObdz8Qo
Iyv0UgeYDyWtONCY/d1Rs0YgWg75reDxQ41e6oa+FwthOQ2x2chE5f2NvKRGy5KZ
LlS42oh0RhaB0jmN+5sycRYge11T61wgGedhjM5dbDgGZVkhEkHTnNEYph3AiYz2
7pA7KY4lZwpKYktoFZ5nTpD2hpqDVMk1BJ6rncExZQSkdkT7+U84oxja0X+joSp8
zR7+lyST5xXq22kPp1g4e36itBE92w32PcXz3NujHSZ6oRPOBb/4bvvbFvP8ctgb
70NW0Sv9LY8KCpw/fFfh8cSRCOSVn9yckjKMIMAGf5Ljax4uCHhpJQevGUejtzhc
/B5Nrw5YA4w16TbX1Ca2+LOnshYsvizOnYLbssAFPP1s8NZIyeubRtMFgDYwNm5p
PDWEINkRYpwTpc3cXo83Sx/vSHpxzOYFWqdpqPzdXZcgJiP0rS0o+TM/lkLKpLWa
TNdmBKS+W9hU5W+MQ6gyCSsCAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4ICAQCm+uwQ
iWLF4llWEEKycNwCzaDodEE1SSht8bTGosSKMFgRjLIQEw2amHMfUwYiQ7c7vzPn
oUE8ZA2Dt0zsW9Y8pNQNiHz6uMuGnmAGy9F/aOM+MZ5K6p6UM/9nly2uiwHD3CG0
v4823m64h7J/cDtDcovcsFjqRNQSTGuUFNAUx+e1d9IuF5/FKUC3I0XOCAiu/7z9
bJX85oL9gSEEu0qnKa5T0CGvbvym+jXY/tmOJXvRjqon+pPFZwpsdWnKHl4QwJWK
Q0/y/1EzCYRLM5rNffRDodNfmjtFZdjCIc1f22lSBtw92YiH2OPJ05Tyw0Axd86b
mmmavhvyWFxGyhBMQTezAxbOlT9CO9oShrAM8D+Dva6FzB4PxQzYTtA9x5/Nm5iy
W+N/o3Iy/qju2ahfuyE+MpANvX0rv8yAfEwcZchxSzH2qTEXaaqXpCImJtSm1Ch3
WrKNYxw05UxYfeDme6eKgYxzsklEGFqE45hLa95LTs6+QAULd7SCAn4xlFV5YQEB
eYYsy2dLEMvv4/MEiAgsn+6yW1bq09sj7mPMaZuYzaTZjaRjA1tI4CmjS8gxj9gv
OjtF2JvcdD9UQc4PKQibmnHJf89XtPBtS3d91WrUYteZZ91jaexe/mqQv9BGQVZU
PKnqm6a3A1pBJFFEBVOc+Ji9JvFIhsFB67PUqg==
-----END CERTIFICATE REQUEST-----
52 changes: 52 additions & 0 deletions certs/zone2/CA-zone2.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDSQT+NxgXgYLqQ
T1wb7XLYnyriiI9+43FMJ0tx5c8mrMWQ0H0cmB26Z8CF9QSx4Lyr6IEeiFVP/LpE
yhfZmeyt2oy/yYL2vXg5CIvY/a115CGK14+XBxAg0ueUQ+d/as+UoBCNdlhXpikh
WwFbCxGaZAA+/m2kYe7F5X83OuQxfRfZ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FctVeCu8NcIiNAcbX5vlpr+FzH1ljCL18rffvzm+FXUVYXI4iGZUC
3fdXRExYnY9tfQWdIs85o4lIum6rRMbzTZpdxNkMdvdMGS0w8MXGR7SQ4OKyYsCR
RKiU8bCHxE7KuTrpp5zOVAC2BImIqVRNEioBmhaxAoIBABjEO+JoG0n0W824IA/k
Db1lLiKWr+mlwBrxYMiSE/07eAvWWI65wKs8VXtu/76Ft6BXmDJiMQZZ5qlK1n39
IdI5eeAXeUkQ8d4rIUEMSpjoiwWoyMKN9tE496K70zB+iPuUsrJZTROMQh+D1DkX
gSE78//qqA6EH4YPw/ATl+OWj74XlVMy8I4nDWlSnEPLztAEWrTUV9V8YSrjG5dx
vKQ+xU1Ap0jX9llopWSLm0y5IIaphWn6M1xw8+5mzfJW+/bTtrAgPrDc3IcrI3SY
sT2Jh5Nm0wJW4bj1QQ0EGArQTu5ucJH24UX28goZyEO+z4fI0Am5JadCJ9Kw8PTl
nCsCggEAMCuMT3NrfeHWdU/DblRzyzDrvCwaj9mswrHpvcAAPUj9Nj0DnyZGYatA
3xBT+oBk8NoZ+gpyj9juG4PLRth2lWDMCPs24KgqW16nsbjE5zIrR36xc8yoQY+B
IiTkdMZl7ExsAXZnkAnxqnwfTgysYTjyrmq6HxWxyvd34aEcnxM/675YwsSLi2E1
MOC46SOTleRoh1/v4+B6gkX6KoyO7fBzD0Ic6bbDhRegGvR22rCIHM8BUFpeL1SY
SRmNflqeyyMj4Mx9W7p+9yPUZIZR1+PzXNqFxUWycKNyjdafeWh0Blo6EesWt3Z4
VfEy61yXWfUf3pC9b+OrbHDGq9jc4A==
-----END PRIVATE KEY-----
1 change: 1 addition & 0 deletions certs/zone2/CA-zone2.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2D286EC177465AB8DF0090DB0469A0AB0A973851
8 changes: 8 additions & 0 deletions certs/zone2/client.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[client]
basicConstraints = CA:FALSE
nsCertType = client, email
nsComment = "SAE Client Certificate"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment
extendedKeyUsage = clientAuth, emailProtection
9 changes: 9 additions & 0 deletions certs/zone2/generate-client-cert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

SAE="sae3"

openssl genrsa -out "$SAE.key" 4096
openssl req -new -key "$SAE.key" -out "$SAE.csr" -sha256 -subj "/CN=$SAE Client certificate"
openssl x509 -req -days 3650 -in "$SAE.csr" -sha256 -CA "CA-zone2.crt" -CAkey "CA-zone2.key" -CAcreateserial -out "$SAE.crt" -extfile "client.cnf" -extensions client
cat "$SAE.key" "$SAE.crt" "CA-zone2.crt" > "$SAE.pem"
openssl pkcs12 -export -out "$SAE.pfx" -inkey "$SAE.key" -in "$SAE.pem" -certfile "CA-zone2.crt"
7 changes: 7 additions & 0 deletions certs/zone2/generate-root-ca.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

openssl genrsa -out "CA-zone2.key" 4096
openssl req -new -key "CA-zone2.key" -out "CA-zone2.csr" -sha256 -subj '/CN=Root CA for KME in zone2'
openssl x509 -req -days 3650 -in "CA-zone2.csr" -signkey "CA-zone2.key" -sha256 -out "CA-zone2.crt" -extfile "root-ca.cnf" -extensions root_ca
sudo cp CA-zone2.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
4 changes: 4 additions & 0 deletions certs/zone2/generate_kme2_server_cert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

openssl req -new -nodes -out kme2.csr -newkey rsa:4096 -keyout kme2.key -subj '/CN=localhost/C=FR/ST=Biot/L=Biot/O=Unice'
openssl x509 -req -in kme2.csr -CA CA-zone2.crt -CAkey CA-zone2.key -CAcreateserial -out kme2.crt -days 3650 -sha256 -extfile kme2.v3.ext
32 changes: 32 additions & 0 deletions certs/zone2/kme2.crt
Original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gNVHSMEGDAWgBSl
1ktJRIlLR/XBknPBewbMMUn7ozAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE8DAaBgNV
HREEEzARgglsb2NhbGhvc3SHBH8AAAEwHQYDVR0OBBYEFJn/3fLgfciNtZv373Pz
zkJ3ypb8MA0GCSqGSIb3DQEBCwUAA4ICAQA68mjO8pz37vAqAdiewt5oAro0tiO7
VS8uFpqQadTh/Pkt+rGK/mdBBRnB/QBfrkJvoNXW1w+l4OOvSyNu1guMqidwnpt2
Q+q20yzd0N5gNqOVp4n2puHR9Ih7CRqiBxL8TnrPaciRw2CEAXHNSIvwQPAEi1CN
LaE/YAXmuhh2WPD4hM7n2PQPcfPuyEWu9Adfq5c3zT8iE6ePY8A54H8v3LvNBCk2
+NGUNVqono+HlENf2fMBL9SsEHEEifhVxD3KZgQspvsUfB9bIkJp73/GGUD4UQ3E
C5E4g4u05y+zJ/dQzM5kiE0OJii5oRlHuS/dgDhuNc4Uly3R3JSOHX3mh7mPAhYM
HJCoOmXm2K56+O9EQfhuKk+AaM6UF+7GeHwDsouu00p4dY8vEVYVxwF0fqlFMTPR
gumdinF6Vr0xswFlORkKFWBC1Qu86zhTW8NcTcM3eLBFsHsX36biYA5GIN4hPyfM
w8p5qXNMR+FLRL4NvBjMmfON0VQbA9+vh5tgWBI5odR+50CutvYN+qiM4zqx7Y1K
PjTtKU7bduY0amqFEAijZ7uvFBr6X4DrjG7EcJBAc8d6Nz1sLCJxUa7jeMRSesgE
gwxDSFgj1FOcH134TFq2lLsUjOp5dzz/MsLbRS+fFid1gdOIeTLRYiq5HG65jXpR
i1bNC0+kXSpzPQ==
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions certs/zone2/kme2.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIElDCCAnwCAQAwTzESMBAGA1UEAwwJbG9jYWxob3N0MQswCQYDVQQGEwJGUjEN
MAsGA1UECAwEQmlvdDENMAsG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g68O
HEdrQCtC1GdGaQGzpyxLIFYm0m8P4cChotnYAp65VW3BB58daCv5CTTBacWJGdXI
EhruYfLgmpniJWA3E/Y25wzTYT1SdUefwyADE71IcsfIwRsxpXpu7IgeQHgrj/y1
WU3De6Y/M+zyvYWHb7XQnzvT4F0eY3myyTjGKalV9CwX9vermYlCpxW3x7TFOfc/
0nTJx8Uo0k7Cac/SQUJmbLUAXR5Ht2jeWYD8dteflZyIh7MXFgRXeU0ytPvl3u9q
ibs9fp04x5bVstrICtW5TIZHK+ggKtZ+q6S4KhuztO2VZBfjX0uqVkP+3ECLttOw
hGbuaMncpMRy47aMAJgZ58586vafsyToYR3iyAxJ/JloYd11P3kAu6h7zNNsnFRP
VY8ZJrUWKvtHJTvbmZAB1Zx14fyYfI6G
-----END CERTIFICATE REQUEST-----
52 changes: 52 additions & 0 deletions certs/zone2/kme2.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDBjdqdE5Kdr+7o
t5PcX4hjWcr/j3BNtti5It0u9DB2fCU0s64teaCh5hO7G69aViZr1xlN7kSXZ3N3
pYgxj5f5PLZWdMepNJQ2uABNX84TzNMaIdfZtn5emcyleGTeN+/K3Yb9XZ8kazuZ
2GSG6YihH6cHQ7DFnSXRr8oP7JliN3Mp1QqLH1qvnWhEQ37MBPYwvLqWMLTt8cW2
8FsX1z7ShnclUwsRCz5CiRNR/sdvzPXw66zKfwXrlPqqOZC7RtxvEjF+wMyxhk1b
9b2WUo6jbJnfaoUKW21G5rdsDW+hpluNFG/ppjwO3l/3pxb9aB6uCW5/u002yW4B
whGnrknDZmT9iTDLJ0ePfxIfqRFGJBC18d4lRhDxMfnExb7EcdRV082dRckolDDH
igAtqKIHQLiFMO4dQtJ9NxE7TmM/RgZFOajVB/7uoTqPNEOdIwPmBKRmOs4XKcOT
mHuPZ4GPHTNVzwBjNkKn5KwtTL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xpO2oOgiSN3pxBUnG2yexN
MTrE5RGduztArK+QhFgEQCNxMNFkx0j7KSKBdX6UTlWaRyoAtNvD4ywtyXf93gtt
6VwOdXGCcp9XfbOXUlDv1QpMeCZ3Y3zVseWqxYzClA9iP8quYo9VUOsA+eqW45hU
EVECggEADmbZWF+Ln7JayKkRNHuGgU376v9+wq3NjKoPfFooHZvhAdb83Jsgbkx1
z+Xmprr/RW8kRiNXraA8bSgtAISLDiDr+FwpbC8YrPNXPVmUZjl0PqPTUO6QhBID
PYAdKtFd/q2JNtIO45daq+lkouloMS7IPZ5m1Uxkv+3igmuqTuhXzDfxeLz1YUOJ
8Ltcqlq/FlnhrSMAz+CcYJt1bOZXm7ZNttG2OECv+KiurZcuRV1IgSFJMcs+1Nvo
gN5+eFKVeIOZOKeyOppcPk7S+vNumFb3eWMKQG+Xjk5kl8RLKq42NmaUNuO5+qyu
9f5Ji+xpe6Lp/fDYsyit7iriFhdrHQ==
-----END PRIVATE KEY-----
8 changes: 8 additions & 0 deletions certs/zone2/kme2.v3.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names

[alt_names]
DNS.1 = localhost
IP.1 = 127.0.0.1
4 changes: 4 additions & 0 deletions certs/zone2/root-ca.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[root_ca]
basicConstraints = critical,CA:TRUE,pathlen:1
keyUsage = critical, nonRepudiation, cRLSign, keyCertSign
subjectKeyIdentifier=hash
32 changes: 32 additions & 0 deletions certs/zone2/sae3.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-----BEGIN CERTIFICATE-----
MIIFizCCA3OgAwIBAgIULShuwXdGWrjfAJDbBGmgqwqXOFEwDQYJKoZIhvcNAQEL
BQAwIzEhMB8GA1UEAwwYUm9vdCBDQSBmb3IgS01FIGluIHpvbmU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wYBBQUHAwIGCCsGAQUFBwMEMA0GCSqGSIb3DQEBCwUAA4ICAQBk
wau2aOK1Y9DQlV85IUaWFgUPkej7AXpgAOugrnWOLfBATdE8WG4bpvCOfVgw15zn
fF088lgc1kDYhb+c0iMKiuVjhokT3R+WfDY2P33QTI1a9eQmc/pG1tb/69tOEa3/
qPCYMNO0Xfhi+/ZRe/a5QltnXJmlQY5vf3rSxGaKBhph/FVlxQbUYoMpcwX4KmDN
YrBg3epRYAEso4beAw1GrmHwtBWAGvH0rLOi1qVuPPToc3yn2Q07bsuerPUMUCY4
SxFqXnCzJcwepJPqdL7qfLEhPEXEKEoVmvu2vA2blTI/6RdIq/ClrS/6er48qQgt
n7iBOR5ilYPfbuDuLPd7FbSfpGa7v1kd8sSFH5jkXuA3hFP4ErSTjJqxg37VezUe
FPph+pTUAK9oH3tqD5KL3oAErfAmioAMxyGMpO7lgJyaJmDvYMGye6o1cEuwXZ19
91QZ8pvnr+JgdyaQRDYoazGUyBKgZl+wwrC68dssm8r2ddbWHbBEtOXwywa90Gaa
iqr9imROrIr0sYrFBlupDOGUdl9k/oZEmiyINbq6aXdn72w8uxBYIltygtTI6XaJ
t6cMkahp5WWnJ7thtRHJZVktCMTkGzQAbEVEuWp6spQw1gSJMoy5UnE4B0a2KuIO
+lnGDDu6yLpf8AMuGxzRFoQxXoehX0VFfr+O3MQj0w==
-----END CERTIFICATE-----
26 changes: 26 additions & 0 deletions certs/zone2/sae3.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIEZzCCAk8CAQAwIjEgMB4GA1UEAwwXc2FlMyBDbGllbnQgY2VydGlmaWNhdGUw
ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDC2jubRZjDpHHr1U5p4186
+LyfCOS04n8RwQDmAn3106TYHB0W682V6HuYbeAjHwW8wIIIwTV2JPWTpPiLM/BI
3KjAnY9DPXV5PzPqIM8dhODt92hp6Ab+LMH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/17UOgkT1ZNvhuRrRmlkOEhDy230d8UNjy9GCRNlgQS1SU4XpQzF/vO2X
ygePPTYJlx97eooq6115VcX0hVdowfIetjK9SbbwjY/0mOWWB/CAvVmWvLWGxhKr
nwGV7kM28227agkOG0R+MnXZ13tHVOWZJ5XXZ0yb58ssfNvrdo5xKuGOpb4uThcZ
Lc1iMQUwAoYCMp+6/Vqp2dZCCQI0AKSIcCMt
-----END CERTIFICATE REQUEST-----
Loading

0 comments on commit fe3dce0

Please sign in to comment.