vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / nixos / tests / ssh-keys.nix
blob675f3a0b43947463a461573da8ebb48c6f26fee6
1 pkgs:
2 { snakeOilPrivateKey = pkgs.writeText "privkey.snakeoil" ''
3     -----BEGIN EC PRIVATE KEY-----
4     MHcCAQEEIHQf/khLvYrQ8IOika5yqtWvI0oquHlpRLTZiJy5dRJmoAoGCCqGSM49
5     AwEHoUQDQgAEKF0DYGbBwbj06tA3fd/+yP44cvmwmHBWXZCKbS+RQlAKvLXMWkpN
6     r1lwMyJZoSGgBHoUahoYjTh9/sJL7XLJtA==
7     -----END EC PRIVATE KEY-----
8   '';
10   snakeOilPublicKey = pkgs.lib.concatStrings [
11     "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA"
12     "yNTYAAABBBChdA2BmwcG49OrQN33f/sj+OHL5sJhwVl2Qim0vkUJQCry1zFpKTa"
13     "9ZcDMiWaEhoAR6FGoaGI04ff7CS+1yybQ= snakeoil"
14   ];
16   snakeOilEd25519PrivateKey = pkgs.writeText "privkey.snakeoil" ''
17     -----BEGIN OPENSSH PRIVATE KEY-----
18     b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
19     QyNTUxOQAAACAYBTIWo1J4PkY4/7AhVyPT8xvAUI67tp+yYFFRdSm7+QAAAJC89yCivPcg
20     ogAAAAtzc2gtZWQyNTUxOQAAACAYBTIWo1J4PkY4/7AhVyPT8xvAUI67tp+yYFFRdSm7+Q
21     AAAEDJmKp3lX6Pz0unTc0QZwrHb8Eyr9fJUopE9d2/+q+eCxgFMhajUng+Rjj/sCFXI9Pz
22     G8BQjru2n7JgUVF1Kbv5AAAACnRvbUBvemRlc2sBAgM=
23     -----END OPENSSH PRIVATE KEY-----
24   '';
26   snakeOilEd25519PublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgFMhajUng+Rjj/sCFXI9PzG8BQjru2n7JgUVF1Kbv5 snakeoil";