summary refs log tree commit diff
path: root/nixos/tests/common
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-07-18 11:05:16 +0200
committernikstur <nikstur@outlook.com>2023-07-26 20:32:51 +0200
commit5750660f2562b5f095c560a33b80782ac9d1aadc (patch)
treec65218b6a3fecbce9b1173bb731dae32f5bf1585 /nixos/tests/common
parent7e522a81ef99a2e7ce0b86bd2c5fd33233e464fe (diff)
downloadnixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar.gz
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar.bz2
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar.lz
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar.xz
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.tar.zst
nixpkgs-5750660f2562b5f095c560a33b80782ac9d1aadc.zip
nixos/tests: use sensible key type for gpg keyring
If someone blindly copies this code, at least they have a sensible key
type.
Diffstat (limited to 'nixos/tests/common')
-rw-r--r--nixos/tests/common/gpg-keyring.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/tests/common/gpg-keyring.nix b/nixos/tests/common/gpg-keyring.nix
index 50b5846b096..fb8d07b1183 100644
--- a/nixos/tests/common/gpg-keyring.nix
+++ b/nixos/tests/common/gpg-keyring.nix
@@ -6,10 +6,8 @@ pkgs.runCommand "gpg-keyring" { nativeBuildInputs = [ pkgs.gnupg ]; } ''
   cat > foo <<EOF
     %echo Generating a basic OpenPGP key
     %no-protection
-    Key-Type: DSA
-    Key-Length: 1024
-    Subkey-Type: ELG-E
-    Subkey-Length: 1024
+    Key-Type: EdDSA
+    Key-Curve: ed25519
     Name-Real: Bob Foobar
     Name-Email: bob@foo.bar
     Expire-Date: 0