Add RSA public keys & IP addresses for some CDN DCs

This commit is contained in:
Dan 2023-04-30 19:54:39 +02:00
parent cea21ad6d0
commit e24d5b1cf5
2 changed files with 68 additions and 18 deletions

View File

@ -153,25 +153,25 @@ server_public_keys = {
int("010001", 16) # Exponent
),
# 6427105915145367799
0x15931aac70e0d30f7 - (1 << 64): PublicKey( # CDN DC-121
# -7395192255793472640
0x995effd323b5db80 - (1 << 64): PublicKey( # CDN DC-121
# -----BEGIN RSA PUBLIC KEY-----
# MIIBCgKCAQEA+Lf3PvgE1yxbJUCMaEAkV0QySTVpnaDjiednB5RbtNWjCeqSVakY
# HbqqGMIIv5WCGdFdrqOfMNcNSstPtSU6R9UmRw6tquOIykpSuUOje9H+4XVIKquj
# yL2ISdK+4ZOMl4hCMkqauw4bP1Sbr03vZRQbU6qEA04V4j879BAyBVhr3WG9+Zi+
# t5XfGSTgSExPYEl8rZNHYNV5RB+BuroVH2HLTOpT/mJVfikYpgjfWF5ldezV4Wo9
# LSH0cZGSFIaeJl8d0A8Eiy5B9gtBO8mL+XfQRKOOmr7a4BM4Ro2de5rr2i2od7hY
# Xd3DO9FRSl4y1zA8Am48Rfd95WHF3N/OmQIDAQAB
# MIIBCgKCAQEA4tWHcGJlElkxuxKQJwFjJaulmVHgdxNA3wgI2E8XbNnA88y51Xog
# V5m8BEYuTSP4llXZY4ZSJW5VlFXnmsJT/hmjyeFqqTajyAW6nb9vwZX291QvqD/1
# ZCFBy7TLvCM0lbNIEhcLMf33ZV8AetLAd+uRLF6QHosys5w0iJ7x+UbGwDxyfeic
# 8EJJnsKaXrUOwRycMRN+V/zDySa0EYl1u1EB1MDX1/jIV1IQEbLvdBH4vsVTVEdW
# KHlzOcFzT9qX/g8XibCPiHLJvqQb8hVibvs9NaANyClcBEt3mOucG1/46Lilkc/K
# d4nlCcohk0jIHNp8symUzNWRPUGmTs3SPwIDAQAB
# -----END RSA PUBLIC KEY-----
int(
"F8B7F73EF804D72C5B25408C6840245744324935699DA0E389E76707945BB4D5"
"A309EA9255A9181DBAAA18C208BF958219D15DAEA39F30D70D4ACB4FB5253A47"
"D526470EADAAE388CA4A52B943A37BD1FEE175482AABA3C8BD8849D2BEE1938C"
"978842324A9ABB0E1B3F549BAF4DEF65141B53AA84034E15E23F3BF410320558"
"6BDD61BDF998BEB795DF1924E0484C4F60497CAD934760D579441F81BABA151F"
"61CB4CEA53FE62557E2918A608DF585E6575ECD5E16A3D2D21F471919214869E"
"265F1DD00F048B2E41F60B413BC98BF977D044A38E9ABEDAE01338468D9D7B9A"
"EBDA2DA877B8585DDDC33BD1514A5E32D7303C026E3C45F77DE561C5DCDFCE99",
"E2D587706265125931BB129027016325ABA59951E0771340DF0808D84F176CD9"
"C0F3CCB9D57A205799BC04462E4D23F89655D9638652256E559455E79AC253FE"
"19A3C9E16AA936A3C805BA9DBF6FC195F6F7542FA83FF5642141CBB4CBBC2334"
"95B34812170B31FDF7655F007AD2C077EB912C5E901E8B32B39C34889EF1F946"
"C6C03C727DE89CF042499EC29A5EB50EC11C9C31137E57FCC3C926B4118975BB"
"5101D4C0D7D7F8C857521011B2EF7411F8BEC55354475628797339C1734FDA97"
"FE0F1789B08F8872C9BEA41BF215626EFB3D35A00DC8295C044B7798EB9C1B5F"
"F8E8B8A591CFCA7789E509CA219348C81CDA7CB32994CCD5913D41A64ECDD23F",
16
), # Modulus
int("010001", 16) # Exponent
@ -199,6 +199,54 @@ server_public_keys = {
16
), # Modulus
int("010001", 16) # Exponent
),
# -3997872768018684475
0xc884b3e62d09e5c5 - (1 << 64): PublicKey( # CDN DC-201
# -----BEGIN RSA PUBLIC KEY-----
# MIIBCgKCAQEAug6fETVb7NkXYYu5ueZuM0pqw1heuqUrZNYomQN0lS0o7i6mAWwb
# 1/FiscFK+y4LQSSEx+oUzXAhjmll9fmb4e7PbUiXo8MuXO0Rj3e5416DXfTiOYGW
# XlFRV0aQzu8agy1epKwkFDidnmy7g5rJJV0q1+3eR+Jk2OEc/B6lMAOv3fBU6xhE
# ZByN9gqc6fvkNo13PQ8JYZUSGttzLlYy76uFmvFBhRsJU+LNQ2+bsTHwafSffVYl
# Z2boJOblvqbRWe453CzssaSWywGXOQmWvVbEe7F8q1ki/s7S8BxYWrhSLJ6bsu9V
# ZWnIHD9vB34QF8IABPRE93mhCOHBqJxSBQIDAQAB
# -----END RSA PUBLIC KEY-----
int(
"BA0E9F11355BECD917618BB9B9E66E334A6AC3585EBAA52B64D628990374952D"
"28EE2EA6016C1BD7F162B1C14AFB2E0B412484C7EA14CD70218E6965F5F99BE1"
"EECF6D4897A3C32E5CED118F77B9E35E835DF4E23981965E5151574690CEEF1A"
"832D5EA4AC2414389D9E6CBB839AC9255D2AD7EDDE47E264D8E11CFC1EA53003"
"AFDDF054EB1844641C8DF60A9CE9FBE4368D773D0F096195121ADB732E5632EF"
"AB859AF141851B0953E2CD436F9BB131F069F49F7D56256766E824E6E5BEA6D1"
"59EE39DC2CECB1A496CB0197390996BD56C47BB17CAB5922FECED2F01C585AB8"
"522C9E9BB2EF556569C81C3F6F077E1017C20004F444F779A108E1C1A89C5205",
16
), # Modulus
int("010001", 16) # Exponent
),
# -4960899639492471258
0xbb27580fd5b01626 - (1 << 64): PublicKey( # CDN DC-203
# -----BEGIN RSA PUBLIC KEY-----
# MIIBCgKCAQEAv/L6td+mj7Dl81NHfu+Xf1KNtvZPR1tS5xFqkiUson1u7D2ulK05
# jM8HKvpV1o+1HPPqhaXhasvsX90u3TIHRQ0zuJKJxKAiZo3GK7phHozjAJ9VUFbO
# 7jKAa5BTE9tXgA5ZwJAiQWb3U6ykwRzk3fFRe5WaW7xfVUiepxyWGdr1eecoWCfB
# af1TCXfcS7vcyljNT03pwt2YyS5iXE5IB5wBB5yqSSm4GYtWWR67UjIsXBd77TRp
# foLGpfOdUHxBz4ZSj8D76m1zlpID5J2pF6bH4+ZCz0SUpv3j7bE8WFlvgMfwEPhw
# xMYidRGayq9YlLlYd4D+Yoq0U6jS3MWTRQIDAQAB
# -----END RSA PUBLIC KEY-----
int(
"BFF2FAB5DFA68FB0E5F353477EEF977F528DB6F64F475B52E7116A92252CA27D"
"6EEC3DAE94AD398CCF072AFA55D68FB51CF3EA85A5E16ACBEC5FDD2EDD320745"
"0D33B89289C4A022668DC62BBA611E8CE3009F555056CEEE32806B905313DB57"
"800E59C090224166F753ACA4C11CE4DDF1517B959A5BBC5F55489EA71C9619DA"
"F579E7285827C169FD530977DC4BBBDCCA58CD4F4DE9C2DD98C92E625C4E4807"
"9C01079CAA4929B8198B56591EBB52322C5C177BED34697E82C6A5F39D507C41"
"CF86528FC0FBEA6D73969203E49DA917A6C7E3E642CF4494A6FDE3EDB13C5859"
"6F80C7F010F870C4C62275119ACAAF5894B9587780FE628AB453A8D2DCC59345",
16
), # Modulus
int("010001", 16) # Exponent
)
}

View File

@ -31,7 +31,8 @@ class DataCenter:
2: "149.154.167.51",
3: "149.154.175.100",
4: "149.154.167.91",
5: "91.108.56.130"
5: "91.108.56.130",
203: "91.105.192.100"
}
PROD_MEDIA = {
@ -55,7 +56,8 @@ class DataCenter:
PROD_IPV6_MEDIA = {
2: "2001:067c:04e8:f002:0000:0000:0000:000b",
4: "2001:067c:04e8:f004:0000:0000:0000:000b"
4: "2001:067c:04e8:f004:0000:0000:0000:000b",
203: "2a0a:f280:0203:000a:5000:0000:0000:0100"
}
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool, media: bool) -> Tuple[str, int]: