diff --git a/scripts/detee-cli_injector.sh b/scripts/detee-cli_injector.sh index a0b1ada..ade77f8 100755 --- a/scripts/detee-cli_injector.sh +++ b/scripts/detee-cli_injector.sh @@ -56,11 +56,14 @@ snpguest --help > /dev/null \ } try_countdown=20; +echo -n Trying $server while [[ $try_countdown -gt 0 ]]; do + echo -n . curl --max-time 1 -k "https://$server" > /dev/null 2>&1 && break sleep 1 ((try_countdown--)) done +echo openssl s_client -connect "$server" "$server_crt" diff --git a/src/snp/mod.rs b/src/snp/mod.rs index 6d40dbe..227a3cc 100644 --- a/src/snp/mod.rs +++ b/src/snp/mod.rs @@ -406,24 +406,24 @@ lazy_static! { kernel_sha: "e49c8587287b21df7600c04326fd7393524453918c14d67f73757dc769a13542".to_string() }; static ref DEFAULT_ARCHLINUX: Distro = Distro { - name: "archlinux_2025-02-21".to_string(), + name: "archlinux_2025-04-03".to_string(), vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_arch_2025-02-21.fsa".to_string(), - template_sha: "257edbf1e3b949b895c422befc8890c85dfae1ad3d35661010c9aaa173ba9fc4" + template_url: "http://registry.detee.ltd/detee_arch_2025-04-03.fsa".to_string(), + template_sha: "7fdb19d9325c63d246140c984dc3764538f6ea329ed877e947993ea7bc8c2067" .to_string() }; static ref DEFAULT_UBUNTU: Distro = Distro { - name: "ubuntu_2025-02-28".to_string(), + name: "ubuntu_2025-04-03".to_string(), vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_ubuntu_2025-02-28.fsa".to_string(), - template_sha: "faa8bd38d02ca9b6ee69d7f5128ed9ccab42bdbfa69f688b9947e8e5c9e5d133" + template_url: "http://registry.detee.ltd/detee_ubuntu_2025-04-03.fsa".to_string(), + template_sha: "324895a7a1788e43253cf9699aa446df1a5519fe072917cedcc4ed356546e34a" .to_string() }; static ref DEFAULT_FEDORA: Distro = Distro { - name: "fedora_2025-02-21".to_string(), + name: "fedora_2025-04-03".to_string(), vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_fedora_2025-02-21.fsa".to_string(), - template_sha: "c0fdd08d465939077ef8ed746903005fc190af12cdf70917cc8c6f872da85777" + template_url: "http://registry.detee.ltd/detee_fedora_2025-04-03.fsa".to_string(), + template_sha: "75a98c3744552bbf5f8e9c6a271cd0f382e1d9a846f5d577767b39293b8efda9" .to_string() }; static ref ALTERNATIVE_INIT: Vec = vec![ @@ -450,25 +450,27 @@ lazy_static! { ]; static ref ALTERNATIVE_DISTROS: Vec = vec![ Distro { - name: "archlinux_2025-01-27".to_string(), - vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_arch_2025-01-27.fsa".to_string(), - template_sha: "c8cc8ef611380c2d1fbab36e44ccfd8d666e344c7aaefe763f7dd6136b672c97" - .to_string() - }, + name: "archlinux_2025-02-21".to_string(), + vendor: "gheorghe".to_string(), + template_url: "http://registry.detee.ltd/detee_arch_2025-02-21.fsa".to_string(), + template_sha: "257edbf1e3b949b895c422befc8890c85dfae1ad3d35661010c9aaa173ba9fc4" + .to_string() + } + , Distro { - name: "ubuntu_2025-02-21".to_string(), - vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_ubuntu_2025-02-21.fsa".to_string(), - template_sha: "180e43c46494c8b5cf2b19067995755ade1bbd80396e1fd5e1c4b164ed2fe8cf" - .to_string() - }, + name: "ubuntu_2025-02-28".to_string(), + vendor: "gheorghe".to_string(), + template_url: "http://registry.detee.ltd/detee_ubuntu_2025-02-28.fsa".to_string(), + template_sha: "faa8bd38d02ca9b6ee69d7f5128ed9ccab42bdbfa69f688b9947e8e5c9e5d133" + .to_string() + } + , Distro { - name: "fedora_2025-01-28".to_string(), - vendor: "gheorghe".to_string(), - template_url: "http://registry.detee.ltd/detee_fedora_2025-01-28.fsa".to_string(), - template_sha: "68c5be46d668a12e8ff78692843a922315bd5cd9c2bb53accf2685ec3be1fa31" - .to_string() + name: "fedora_2025-02-21".to_string(), + vendor: "gheorghe".to_string(), + template_url: "http://registry.detee.ltd/detee_fedora_2025-02-21.fsa".to_string(), + template_sha: "c0fdd08d465939077ef8ed746903005fc190af12cdf70917cc8c6f872da85777" + .to_string() } ]; }