integration-test
Passed Started
by
@wiktor
Wiktor Kwapisiewicz
This job is archived. Only the complete pipeline can be retried.
1Running with gitlab-runner 17.1.0 (fe451d5a)2 on runner1.archlinux.org EHL25oyk, system ID: s_858dd72b441e3 feature flags: FF_USE_FASTZIP:true4Resolving secrets6Using Custom executor...7Formatting '/var/lib/libvirt/images/runner-EHL25oyk-project-84281-pipeline-30-job-249369.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=42949672960 backing_file=/var/lib/libvirt/images/runner-base-1721814380.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=168Domain 'runner-EHL25oyk-project-84281-pipeline-30-job-249369' defined from /dev/fd/639Domain 'runner-EHL25oyk-project-84281-pipeline-30-job-249369' started10Waiting for network11Waiting for network12Waiting for network13Waiting for network14Waiting for network15Waiting for network16Waiting for network17Waiting for network18Waiting for network19Waiting for network20ssh: connect to host 192.168.122.34 port 22: Connection refused21Waiting for SSH to be ready22ssh: connect to host 192.168.122.34 port 22: Connection refused23Waiting for SSH to be ready24ssh: connect to host 192.168.122.34 port 22: Connection refused25Waiting for SSH to be ready26ssh: connect to host 192.168.122.34 port 22: Connection refused27Waiting for SSH to be ready28ssh: connect to host 192.168.122.34 port 22: Connection refused29Waiting for SSH to be ready30ssh: connect to host 192.168.122.34 port 22: Connection refused31Waiting for SSH to be ready32ssh: connect to host 192.168.122.34 port 22: Connection refused33Waiting for SSH to be ready34ssh: connect to host 192.168.122.34 port 22: Connection refused35Waiting for SSH to be ready36Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.37192.168.122.3439Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.40Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.41bash: line 5: hostname: command not found42Running on ...44Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.45Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.46Fetching changes with git depth set to 50...47Initialized empty Git repository in /builds/wiktor/signstar/.git/48Created fresh repository.49Checking out e1102b16 as detached HEAD (ref is wiktor/wait-until-ready)...50Skipping object checkout, Git LFS is not installed for this repository.51Consider installing it with 'git lfs install'.52Skipping Git submodules setup54WARNING: Starting with version 17.0 the 'build_script' stage will be replaced with 'step_script': https://gitlab.com/groups/gitlab-org/-/epics/611255Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.56Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.57$ pacman-key --init58$ pacman -Sy --needed --noconfirm archlinux-keyring59:: Synchronizing package databases...60 core downloading...61 extra downloading...62warning: archlinux-keyring-20240709-1 is up to date -- skipping63 there is nothing to do64$ source .env && pacman -Syu --needed --noconfirm $PACMAN_PACKAGES65:: Synchronizing package databases...66 core downloading...67 extra downloading...68warning: git-2.45.2-1 is up to date -- skipping69warning: openssl-3.3.1-1 is up to date -- skipping70:: Starting full system upgrade...71resolving dependencies...72:: There are 2 providers available for oci-runtime:73:: Repository extra74 1) crun 2) runc75Enter a number (default=1): 76looking for conflicting packages...77Packages (67) aardvark-dns-1.11.0-1 abseil-cpp-20240116.2-2 catatonit-0.2.0-3 compiler-rt-18.1.8-1 conmon-1:2.1.12-1 containers-common-1:0.59.2-1 cppdap-1.58.0-2 criu-3.19-1 crun-1.15-1 gc-8.2.6-1 gcc-14.1.1+r309+gbb34b7eda1f-1 gtest-1.14.0-2 guile-3.0.10-1 hicolor-icon-theme-0.18-1 http-parser-2.9.4-2 hwloc-2.10.0-1 iproute2-6.10.0-2 jsoncpp-1.9.5-3 keyutils-1.6.3-3 libbsd-0.12.2-2 libdrm-2.4.122-1 libgit2-1:1.8.1-1 libisl-0.26-2 libmd-1.1.0-2 libmpc-1.3.1-2 libnet-2:1.3-1 libpciaccess-0.18.1-2 libtool-2.5.0+14+g9a4a0261-2 libuv-1.48.0-2 libxcrypt-4.4.36-2 llvm-libs-18.1.8-4 mimalloc-2.1.7-1 mpdecimal-4.0.0-2 netavark-1.11.0-2 nftables-1:1.1.0-2 onetbb-2021.13.0-1 passt-2024_06_24.1ee2eca-1 protobuf-27.2-1 protobuf-c-1.5.0-3 python-3.12.4-1 python-attrs-23.2.0-3 python-binaryornot-0.4.4-10 python-boolean.py-4.0-3 python-chardet-5.2.0-2 python-debian-0.1.49-5 python-jinja-1:3.1.4-1 python-license-expression-30.3.0-1 python-markupsafe-2.1.5-2 python-protobuf-27.2-1 python-tomlkit-0.13.0-1 rhash-1.4.4-1 yajl-2.1.0-6 cargo-deny-0.14.24-1 clang-18.1.8-1 cmake-3.30.1-1 cocogitto-6.1.0-3 codespell-2.3.0-1 just-1.32.0-1 make-4.4.1-2 mold-2.32.1-1 pkgconf-2.1.1-1 podman-5.1.2-1 release-plz-0.3.74-1 reuse-4.0.3-1 ripgrep-14.1.0-1 rustup-1.27.1-1 tangler-0.3.0-178Total Download Size: 229.90 MiB79Total Installed Size: 1032.13 MiB80Net Upgrade Size: 1028.84 MiB81:: Proceed with installation? [Y/n] 82:: Retrieving packages...83 gcc-14.1.1+r309+gbb34b7eda1f-1-x86_64 downloading...84 clang-18.1.8-1-x86_64 downloading...85 llvm-libs-18.1.8-4-x86_64 downloading...86 podman-5.1.2-1-x86_64 downloading...87 python-3.12.4-1-x86_64 downloading...88 cmake-3.30.1-1-x86_64 downloading...89 guile-3.0.10-1-x86_64 downloading...90 release-plz-0.3.74-1-x86_64 downloading...91 cargo-deny-0.14.24-1-x86_64 downloading...92 netavark-1.11.0-2-x86_64 downloading...93 compiler-rt-18.1.8-1-x86_64 downloading...94 protobuf-27.2-1-x86_64 downloading...95 rustup-1.27.1-1-x86_64 downloading...96 mold-2.32.1-1-x86_64 downloading...97 cocogitto-6.1.0-3-x86_64 downloading...98 ripgrep-14.1.0-1-x86_64 downloading...99 just-1.32.0-1-x86_64 downloading...100 abseil-cpp-20240116.2-2-x86_64 downloading...101 iproute2-6.10.0-2-x86_64 downloading...102 libgit2-1:1.8.1-1-x86_64 downloading...103 libisl-0.26-2-x86_64 downloading...104 aardvark-dns-1.11.0-1-x86_64 downloading...105 criu-3.19-1-x86_64 downloading...106 hwloc-2.10.0-1-x86_64 downloading...107 make-4.4.1-2-x86_64 downloading...108 gtest-1.14.0-2-x86_64 downloading...109 python-protobuf-27.2-1-x86_64 downloading...110 libtool-2.5.0+14+g9a4a0261-2-x86_64 downloading...111 nftables-1:1.1.0-2-x86_64 downloading...112 onetbb-2021.13.0-1-x86_64 downloading...113 libdrm-2.4.122-1-x86_64 downloading...114 cppdap-1.58.0-2-x86_64 downloading...115 codespell-2.3.0-1-any downloading...116 libnet-2:1.3-1-x86_64 downloading...117 python-jinja-1:3.1.4-1-any downloading...118 catatonit-0.2.0-3-x86_64 downloading...119 crun-1.15-1-x86_64 downloading...120 python-chardet-5.2.0-2-any downloading...121 reuse-4.0.3-1-any downloading...122 libuv-1.48.0-2-x86_64 downloading...123 python-debian-0.1.49-5-any downloading...124 gc-8.2.6-1-x86_64 downloading...125 rhash-1.4.4-1-x86_64 downloading...126 libbsd-0.12.2-2-x86_64 downloading...127 jsoncpp-1.9.5-3-x86_64 downloading...128 passt-2024_06_24.1ee2eca-1-x86_64 downloading...129 tangler-0.3.0-1-x86_64 downloading...130 protobuf-c-1.5.0-3-x86_64 downloading...131 python-license-expression-30.3.0-1-any downloading...132 containers-common-1:0.59.2-1-any downloading...133 keyutils-1.6.3-3-x86_64 downloading...134 python-tomlkit-0.13.0-1-any downloading...135 python-attrs-23.2.0-3-any downloading...136 mpdecimal-4.0.0-2-x86_64 downloading...137 libmpc-1.3.1-2-x86_64 downloading...138 libxcrypt-4.4.36-2-x86_64 downloading...139 mimalloc-2.1.7-1-x86_64 downloading...140 python-boolean.py-4.0-3-any downloading...141 pkgconf-2.1.1-1-x86_64 downloading...142 yajl-2.1.0-6-x86_64 downloading...143 libmd-1.1.0-2-x86_64 downloading...144 conmon-1:2.1.12-1-x86_64 downloading...145 libpciaccess-0.18.1-2-x86_64 downloading...146 python-markupsafe-2.1.5-2-x86_64 downloading...147 http-parser-2.9.4-2-x86_64 downloading...148 python-binaryornot-0.4.4-10-any downloading...149 hicolor-icon-theme-0.18-1-any downloading...150checking keyring...151checking package integrity...152loading package files...153checking for file conflicts...154checking available disk space...155:: Processing package changes...156upgrading libxcrypt...157upgrading keyutils...158installing rustup...159You may need to run rustup update stable160and possibly also rustup self upgrade-data161Optional dependencies for rustup162 lldb: rust-lldb script163 gdb: rust-gdb script164installing cargo-deny...165installing llvm-libs...166installing libmpc...167installing libisl...168installing gcc...169Optional dependencies for gcc170 lib32-gcc-libs: for generating code for 32-bit ABI171installing compiler-rt...172installing clang...173Optional dependencies for clang174 openmp: OpenMP support in clang with -fopenmp175 python: for scan-view and git-clang-format [pending]176 llvm: referenced by some clang headers177installing cppdap...178installing hicolor-icon-theme...179installing jsoncpp...180Optional dependencies for jsoncpp181 jsoncpp-doc: documentation182installing libuv...183installing rhash...184installing cmake...185Optional dependencies for cmake186 make: for unix Makefile generator [pending]187 ninja: for ninja generator188 qt6-base: cmake-gui189installing http-parser...190installing libgit2...191installing cocogitto...192installing mpdecimal...193installing python...194Optional dependencies for python195 python-setuptools: for building Python packages using tooling that is usually bundled with Python196 python-pip: for installing Python packages using tooling that is usually bundled with Python197 python-pipx: for installing Python software not packaged on Arch Linux198 sqlite: for a default database integration [installed]199 xz: for lzma [installed]200 tk: for tkinter201installing python-chardet...202installing codespell...203installing just...204installing gc...205installing guile...206installing make...207installing mimalloc...208installing libtool...209installing libpciaccess...210installing hwloc...211Optional dependencies for hwloc212 cairo213 libxml2 [installed]214 pciutils [installed]215 libx11216installing onetbb...217installing mold...218installing pkgconf...219installing catatonit...220installing conmon...221installing aardvark-dns...222installing netavark...223installing containers-common...224installing yajl...225installing libmd...226installing libbsd...227installing libdrm...228Optional dependencies for libdrm229 cairo: needed for modetest tool230installing libnet...231installing nftables...232Optional dependencies for nftables233 python: Python bindings [installed]234installing gtest...235Optional dependencies for gtest236 python: gmock generator [installed]237installing abseil-cpp...238installing protobuf...239installing protobuf-c...240installing python-protobuf...241installing criu...242installing crun...243installing passt...244Optional dependencies for passt245 sh: for demo script [installed]246installing podman...247Optional dependencies for podman248 apparmor: for AppArmor support249 btrfs-progs: support btrfs backend devices [installed]250 cni-plugins: for an alternative container-network-stack implementation251 fuse-overlayfs: for storage driver in rootless environment252 slirp4netns: for alternative rootless network support253 podman-compose: for docker-compose compatibility254 podman-docker: for Docker-compatible CLI255installing release-plz...256Optional dependencies for release-plz257 cargo-semver-checks: check for API breaking changes258installing python-debian...259installing python-boolean.py...260installing python-license-expression...261installing python-markupsafe...262installing python-jinja...263Optional dependencies for python-jinja264 python-babel: for i18n support265installing python-binaryornot...266installing python-attrs...267installing python-tomlkit...268installing reuse...269Optional dependencies for reuse270 git: git repository support [installed]271 mercurial: mercurial repository support272installing ripgrep...273installing tangler...274upgrading iproute2...275:: Running post-transaction hooks...276(1/4) Reloading system manager configuration...277(2/4) Reloading user manager configuration...278(3/4) Creating temporary files...279(4/4) Arming ConditionNeedsUpdate...280$ useradd -m testuser281$ chown -R testuser:testuser .282$ WORKDIR="$(pwd)" runuser -w WORKDIR -l testuser -c 'env && cd "$WORKDIR" && just install-rust-dev-tools && just test-readme nethsm-cli && just ignored=true test'283SHELL=/usr/bin/bash284PWD=/home/testuser285LOGNAME=testuser286MOTD_SHOWN=pam287HOME=/home/testuser288LANG=C.UTF-8289WORKDIR=/builds/wiktor/signstar290USER=testuser291SHLVL=1292DEBUGINFOD_URLS=https://debuginfod.archlinux.org 293PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin294MAIL=/var/spool/mail/testuser295_=/usr/bin/env296rustup default stable297info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'298info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)299info: downloading component 'cargo'300info: downloading component 'clippy'301info: downloading component 'rust-docs'302info: downloading component 'rust-std'303info: downloading component 'rustc'304info: downloading component 'rustfmt'305info: installing component 'cargo'306info: installing component 'clippy'307info: installing component 'rust-docs'308info: installing component 'rust-std'309info: installing component 'rustc'310info: installing component 'rustfmt'311info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'312 stable-x86_64-unknown-linux-gnu installed - rustc 1.79.0 (129f3b996 2024-06-10)313rustup component add clippy314info: component 'clippy' for target 'x86_64-unknown-linux-gnu' is up to date315rustup toolchain install nightly316info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'317info: latest update on 2024-07-24, rust version 1.82.0-nightly (8bfcae730 2024-07-23)318info: downloading component 'cargo'319info: downloading component 'clippy'320info: downloading component 'rust-docs'321info: downloading component 'rust-std'322info: downloading component 'rustc'323info: downloading component 'rustfmt'324info: installing component 'cargo'325info: installing component 'clippy'326info: installing component 'rust-docs'327info: installing component 'rust-std'328info: installing component 'rustc'329info: installing component 'rustfmt'330info: self-update is disabled for this build of rustup331info: any updates to rustup will need to be fetched with your system package manager332 nightly-x86_64-unknown-linux-gnu installed - rustc 1.82.0-nightly (8bfcae730 2024-07-23)333rustup component add --toolchain nightly rustfmt334info: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is up to date335+ CARGO_HOME=/home/testuser/.cargo336+ container_id=337+ trap stop_container EXIT338+ install_executables339+ printf 'Installing executables of %s...\n' nethsm-cli340+ cargo install --locked --path nethsm-cli341Installing executables of nethsm-cli...342 Installing nethsm-cli v0.1.0 (/builds/wiktor/signstar/nethsm-cli)343 Updating crates.io index344 Downloading crates ...345 Downloaded signature v2.2.0346 Downloaded sha1 v0.10.6347 Downloaded strsim v0.11.1348 Downloaded spin v0.9.8349 Downloaded version_check v0.9.4350 Downloaded zeroize_derive v1.4.2351 Downloaded thiserror-impl v1.0.62352 Downloaded zeroize v1.8.1353 Downloaded webpki-roots v0.26.3354 Downloaded generic-array v0.14.7355 Downloaded group v0.13.0356 Downloaded flate2 v1.0.30357 Downloaded secrecy v0.8.0358 Downloaded rustls-webpki v0.102.5359 Downloaded rustls v0.23.11360 Downloaded p384 v0.13.0361 Downloaded libc v0.2.155362 Downloaded ryu v1.0.18363 Downloaded rustls-pemfile v2.1.2364 Downloaded rtoolbox v0.0.2365 Downloaded rfc6979 v0.4.0366 Downloaded rand_chacha v0.3.1367 Downloaded primeorder v0.13.6368 Downloaded ppv-lite86 v0.2.17369 Downloaded pkcs1 v0.7.5370 Downloaded pem-rfc7468 v0.7.0371 Downloaded p256 v0.13.2372 Downloaded option-ext v0.2.0373 Downloaded once_cell v1.19.0374 Downloaded num-iter v0.1.45375 Downloaded num-bigint-dig v0.8.4376 Downloaded miniz_oxide v0.7.4377 Downloaded memchr v2.7.4378 Downloaded log v0.4.22379 Downloaded itoa v1.0.11380 Downloaded indexmap v2.2.6381 Downloaded ring v0.17.8382 Downloaded iana-time-zone v0.1.60383 Downloaded hmac v0.12.1384 Downloaded hex v0.4.3385 Downloaded heck v0.4.1386 Downloaded curve25519-dalek v4.1.3387 Downloaded elliptic-curve v0.13.8388 Downloaded ed25519 v2.2.3389 Downloaded directories v5.0.1390 Downloaded der v0.7.9391 Downloaded crypto-bigint v0.5.5392 Downloaded cpufeatures v0.2.12393 Downloaded confy v0.6.1394 Downloaded clap_lex v0.7.1395 Downloaded clap_builder v4.5.9396 Downloaded chrono v0.4.38397 Downloaded byteorder v1.5.0398 Downloaded base64ct v1.6.0399 Downloaded base64 v0.21.7400 Downloaded autocfg v1.3.0401 Downloaded idna v0.5.0402 Downloaded utf8parse v0.2.2403 Downloaded ureq v2.10.0404 Downloaded unicode-normalization v0.1.23405 Downloaded unicode-bidi v0.3.15406 Downloaded toml_datetime v0.6.6407 Downloaded tinyvec v1.8.0408 Downloaded thiserror v1.0.62409 Downloaded subtle v2.6.1410 Downloaded strum v0.25.0411 Downloaded spki v0.7.3412 Downloaded smallvec v1.13.2413 Downloaded rustversion v1.0.17414 Downloaded rustls-pki-types v1.7.0415 Downloaded rustls-native-certs v0.7.1416 Downloaded rsa v0.9.6417 Downloaded rpassword v7.3.1418 Downloaded rand v0.8.5419 Downloaded quote v1.0.36420 Downloaded proc-macro2 v1.0.86421 Downloaded pkcs8 v0.10.2422 Downloaded p521 v0.13.3423 Downloaded p224 v0.13.2424 Downloaded num-traits v0.2.19425 Downloaded libm v0.2.8426 Downloaded hkdf v0.12.4427 Downloaded hashbrown v0.14.5428 Downloaded ed25519-dalek v2.1.1429 Downloaded cc v1.1.2430 Downloaded base64 v0.22.1431 Downloaded syn v2.0.71432 Downloaded rustc_version v0.4.0433 Downloaded rand_core v0.6.4434 Downloaded num-integer v0.1.46435 Downloaded nethsm-sdk-rs v1.0.1436 Downloaded md-5 v0.10.6437 Downloaded lazy_static v1.5.0438 Downloaded getrandom v0.2.15439 Downloaded ecdsa v0.16.9440 Downloaded crc32fast v1.4.2441 Downloaded const-oid v0.9.6442 Downloaded clap_derive v4.5.8443 Downloaded clap v4.5.9444 Downloaded anstream v0.6.14445 Downloaded winnow v0.6.13446 Downloaded url v2.5.2447 Downloaded untrusted v0.9.0448 Downloaded toml_edit v0.22.15449 Downloaded strum_macros v0.25.3450 Downloaded serde_spanned v0.6.6451 Downloaded serde_derive v1.0.204452 Downloaded serde v1.0.204453 Downloaded semver v1.0.23454 Downloaded sec1 v0.7.3455 Downloaded rprompt v2.1.1456 Downloaded percent-encoding v2.3.1457 Downloaded openssl-probe v0.1.5458 Downloaded is_terminal_polyfill v1.70.0459 Downloaded heck v0.5.0460 Downloaded ff v0.13.0461 Downloaded dirs-sys v0.4.1462 Downloaded digest v0.10.7463 Downloaded curve25519-dalek-derive v0.1.1464 Downloaded colorchoice v1.0.1465 Downloaded cfg-if v1.0.0466 Downloaded block-buffer v0.10.4467 Downloaded base16ct v0.2.0468 Downloaded anstyle-query v1.1.0469 Downloaded anstyle-parse v0.2.4470 Downloaded anstyle v1.0.7471 Downloaded adler v1.0.2472 Downloaded unicode-ident v1.0.12473 Downloaded typenum v1.17.0474 Downloaded toml v0.8.14475 Downloaded tinyvec_macros v0.1.1476 Downloaded sha2 v0.10.8477 Downloaded serde_json v1.0.120478 Downloaded form_urlencoded v1.2.1479 Downloaded equivalent v1.0.1480 Downloaded crypto-common v0.1.6481 Compiling proc-macro2 v1.0.86482 Compiling unicode-ident v1.0.12483 Compiling serde v1.0.204484 Compiling libc v0.2.155485 Compiling cfg-if v1.0.0486 Compiling subtle v2.6.1487 Compiling version_check v0.9.4488 Compiling typenum v1.17.0489 Compiling generic-array v0.14.7490 Compiling quote v1.0.36491 Compiling syn v2.0.71492 Compiling const-oid v0.9.6493 Compiling getrandom v0.2.15494 Compiling rand_core v0.6.4495 Compiling base64ct v1.6.0496 Compiling ff v0.13.0497 Compiling base16ct v0.2.0498 Compiling pem-rfc7468 v0.7.0499 Compiling spin v0.9.8500 Compiling libm v0.2.8501 Compiling cc v1.1.2502 Compiling autocfg v1.3.0503 Compiling cpufeatures v0.2.12504 Compiling group v0.13.0505 Compiling semver v1.0.23506 Compiling num-traits v0.2.19507 Compiling rustls-pki-types v1.7.0508 Compiling tinyvec_macros v0.1.1509 Compiling tinyvec v1.8.0510 Compiling ring v0.17.8511 Compiling untrusted v0.9.0512 Compiling rustc_version v0.4.0513 Compiling unicode-normalization v0.1.23514 Compiling rustversion v1.0.17515 Compiling adler v1.0.2516 Compiling rustls v0.23.11517 Compiling unicode-bidi v0.3.15518 Compiling ppv-lite86 v0.2.17519 Compiling base64 v0.22.1520 Compiling percent-encoding v2.3.1521 Compiling serde_json v1.0.120522 Compiling form_urlencoded v1.2.1523 Compiling idna v0.5.0524 Compiling rand_chacha v0.3.1525 Compiling miniz_oxide v0.7.4526 Compiling curve25519-dalek v4.1.3527 Compiling num-integer v0.1.46528 Compiling serde_derive v1.0.204529 Compiling zeroize_derive v1.4.2530 Compiling crc32fast v1.4.2531 Compiling num-bigint-dig v0.8.4532 Compiling thiserror v1.0.62533 Compiling ryu v1.0.18534 Compiling hashbrown v0.14.5535 Compiling utf8parse v0.2.2536 Compiling once_cell v1.19.0537 Compiling equivalent v1.0.1538 Compiling log v0.4.22539 Compiling itoa v1.0.11540 Compiling indexmap v2.2.6541 Compiling anstyle-parse v0.2.4542 Compiling flate2 v1.0.30543 Compiling num-iter v0.1.45544 Compiling thiserror-impl v1.0.62545 Compiling curve25519-dalek-derive v0.1.1546 Compiling rustls-webpki v0.102.5547 Compiling rand v0.8.5548 Compiling webpki-roots v0.26.3549 Compiling lazy_static v1.5.0550 Compiling option-ext v0.2.0551 Compiling winnow v0.6.13552 Compiling byteorder v1.5.0553 Compiling smallvec v1.13.2554 Compiling is_terminal_polyfill v1.70.0555 Compiling heck v0.4.1556 Compiling colorchoice v1.0.1557 Compiling anstyle-query v1.1.0558 Compiling anstyle v1.0.7559 Compiling strum_macros v0.25.3560 Compiling anstream v0.6.14561 Compiling dirs-sys v0.4.1562 Compiling rustls-pemfile v2.1.2563 Compiling rtoolbox v0.0.2564 Compiling base64 v0.21.7565 Compiling openssl-probe v0.1.5566 Compiling strsim v0.11.1567 Compiling iana-time-zone v0.1.60568 Compiling zeroize v1.8.1569 Compiling serde_spanned v0.6.6570 Compiling toml_datetime v0.6.6571 Compiling url v2.5.2572 Compiling der v0.7.9573 Compiling block-buffer v0.10.4574 Compiling crypto-common v0.1.6575 Compiling digest v0.10.7576 Compiling hmac v0.12.1577 Compiling signature v2.2.0578 Compiling hkdf v0.12.4579 Compiling crypto-bigint v0.5.5580 Compiling rfc6979 v0.4.0581 Compiling spki v0.7.3582 Compiling pkcs8 v0.10.2583 Compiling sec1 v0.7.3584 Compiling sha2 v0.10.8585 Compiling elliptic-curve v0.13.8586 Compiling ecdsa v0.16.9587 Compiling primeorder v0.13.6588 Compiling ed25519 v2.2.3589 Compiling pkcs1 v0.7.5590 Compiling ureq v2.10.0591 Compiling toml_edit v0.22.15592 Compiling clap_lex v0.7.1593 Compiling heck v0.5.0594 Compiling clap_derive v4.5.8595 Compiling clap_builder v4.5.9596 Compiling rsa v0.9.6597 Compiling toml v0.8.14598 Compiling ed25519-dalek v2.1.1599 Compiling nethsm-sdk-rs v1.0.1600 Compiling p521 v0.13.3601 Compiling p384 v0.13.0602 Compiling p224 v0.13.2603 Compiling p256 v0.13.2604 Compiling sha1 v0.10.6605 Compiling md-5 v0.10.6606 Compiling secrecy v0.8.0607 Compiling strum v0.25.0608 Compiling hex v0.4.3609 Compiling chrono v0.4.38610 Compiling rustls-native-certs v0.7.1611 Compiling directories v5.0.1612 Compiling clap v4.5.9613 Compiling confy v0.6.1614 Compiling rprompt v2.1.1615 Compiling rpassword v7.3.1616 Compiling nethsm v0.3.0 (/builds/wiktor/signstar/nethsm)617 Compiling nethsm-cli v0.1.0 (/builds/wiktor/signstar/nethsm-cli)618 Finished `release` profile [optimized] target(s) in 47.92s619 Installing /home/testuser/.cargo/bin/nethsm620 Installed package `nethsm-cli v0.1.0 (/builds/wiktor/signstar/nethsm-cli)` (executable `nethsm`)621+ create_container622++ podman container create --rm --network=pasta:-t,auto,-u,auto,-T,auto,-U,auto docker.io/nitrokey/nethsm:testing623time="2024-07-24T11:38:59Z" level=warning msg="The cgroupv2 manager is set to systemd but there is no systemd user session available"624time="2024-07-24T11:38:59Z" level=warning msg="For using systemd, you may need to log in using a user session"625time="2024-07-24T11:38:59Z" level=warning msg="Alternatively, you can enable lingering with: `loginctl enable-linger 1000` (possibly as root)"626time="2024-07-24T11:38:59Z" level=warning msg="Falling back to --cgroup-manager=cgroupfs"627Trying to pull docker.io/nitrokey/nethsm:testing...628Getting image source signatures629Copying blob sha256:7c9f2fc7a65b85988c5aaf0baea19bed1e2cc04ea9a5f7ed702d6ba7b15d6259630Copying blob sha256:d078792c4f9122259f14b539315bd92cbd9490ed73e08255a08689122b143108631Copying blob sha256:b89e20d9623f756b6674fe2fb822b869a3c87be82d76d033a387ba569ef6d5ef632Copying blob sha256:71881c7fa079ccadde9ed17a454aa3508e2cc9c9809e8f79061ef6f3dd341373633Copying config sha256:2f5ed611930f0bf9169c45c13ef12523364cd94359ef58e93010a5d687bf9d96634Writing manifest to image destination635time="2024-07-24T11:39:02Z" level=warning msg="Failed to add pause process to systemd sandbox cgroup: dbus: couldn't determine address of session bus"636+ container_id=76136e88808b1ef19a7e6effcf1d65a2c14df655eed4ed8344fc24e825936fa7637+ start_container638+ podman container start 76136e88808b1ef19a7e6effcf1d65a2c14df655eed4ed8344fc24e825936fa7639time="2024-07-24T11:39:02Z" level=warning msg="The cgroupv2 manager is set to systemd but there is no systemd user session available"640time="2024-07-24T11:39:02Z" level=warning msg="For using systemd, you may need to log in using a user session"641time="2024-07-24T11:39:02Z" level=warning msg="Alternatively, you can enable lingering with: `loginctl enable-linger 1000` (possibly as root)"642time="2024-07-24T11:39:02Z" level=warning msg="Falling back to --cgroup-manager=cgroupfs"643time="2024-07-24T11:39:02Z" level=warning msg="The cgroupv2 manager is set to systemd but there is no systemd user session available"644time="2024-07-24T11:39:02Z" level=warning msg="For using systemd, you may need to log in using a user session"645time="2024-07-24T11:39:02Z" level=warning msg="Alternatively, you can enable lingering with: `loginctl enable-linger 1000` (possibly as root)"646time="2024-07-24T11:39:02Z" level=warning msg="Falling back to --cgroup-manager=cgroupfs"647+ PATH=/home/testuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin648+ printf 'PATH=%s\n' /home/testuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin649+ cd nethsm-cli650PATH=/home/testuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin651+ PATH=/home/testuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin652+ tangler bash653+ bash -euxo pipefail -654++ mktemp --directory --suffix .nethsm-test655+ nethsm_tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test656++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --suffix -nethsm.toml --dry-run657+ export NETHSM_CONFIG=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hGbfql3kdh-nethsm.toml658+ NETHSM_CONFIG=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hGbfql3kdh-nethsm.toml659+ nethsm env add device --label test https://localhost:8443/api/v1 Unsafe660++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.admin-passphrase.txt661+ nethsm_admin_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.sRx0qjbp5s-nethsm.admin-passphrase.txt662+ export NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.sRx0qjbp5s-nethsm.admin-passphrase.txt663+ NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.sRx0qjbp5s-nethsm.admin-passphrase.txt664+ printf my-very-unsafe-admin-passphrase665+ nethsm env add credentials admin Administrator666+ nethsm health state667Error: NetHsm(Api("Retrieving state failed: https://localhost:8443/api/v1/health/state: Connection Failed: Connect error: Connection refused (os error 111)"))668+ echo NetHSM is not ready, waiting...669+ sleep 1670NetHSM is not ready, waiting...671+ nethsm health state672Error: NetHsm(Api("Retrieving state failed: https://localhost:8443/api/v1/health/state: Connection Failed: Connect error: Connection refused (os error 111)"))673+ echo NetHSM is not ready, waiting...674+ sleep 1675NetHSM is not ready, waiting...676+ nethsm health state677Error: NetHsm(Api("Retrieving state failed: https://localhost:8443/api/v1/health/state: Connection Failed: Connect error: Connection refused (os error 111)"))678+ echo NetHSM is not ready, waiting...679+ sleep 1680NetHSM is not ready, waiting...681+ nethsm health state682Unprovisioned683+ echo NetHSM is ready for provisioning.684NetHSM is ready for provisioning.685++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.unlock-passphrase.txt686+ export NETHSM_UNLOCK_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.8fXbvoHaxh-nethsm.unlock-passphrase.txt687+ NETHSM_UNLOCK_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.8fXbvoHaxh-nethsm.unlock-passphrase.txt688+ printf my-very-unsafe-unlock-passphrase689+ export NETHSM_ADMIN_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.sRx0qjbp5s-nethsm.admin-passphrase.txt690+ NETHSM_ADMIN_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.sRx0qjbp5s-nethsm.admin-passphrase.txt691+ nethsm provision692++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.admin1-passphrase.txt693+ nethsm_admin1_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e0wqPp7ibz-nethsm.admin1-passphrase.txt694+ printf my-very-unsafe-admin1-passphrase695++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.operator1-passphrase.txt696+ nethsm_operator1_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.KksK562u4E-nethsm.operator1-passphrase.txt697+ printf my-very-unsafe-operator1-passphrase698++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.backup1-passphrase.txt699+ nethsm_backup1_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.dpgqvFybQT-nethsm.backup1-passphrase.txt700+ printf my-very-unsafe-backup1-passphrase701++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.metrics1-passphrase.txt702+ nethsm_metrics1_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.6egSZpP0k0-nethsm.metrics1-passphrase.txt703+ printf my-very-unsafe-metrics1-passphrase704+ export NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e0wqPp7ibz-nethsm.admin1-passphrase.txt705+ NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e0wqPp7ibz-nethsm.admin1-passphrase.txt706+ nethsm user add 'Some Admin1' Administrator admin1707admin1708+ nethsm env add credentials admin1 Administrator709+ export NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.KksK562u4E-nethsm.operator1-passphrase.txt710+ NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.KksK562u4E-nethsm.operator1-passphrase.txt711+ nethsm user add 'Some Operator1' Operator operator1712operator1713+ nethsm env add credentials operator1 Operator714+ export NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.dpgqvFybQT-nethsm.backup1-passphrase.txt715+ NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.dpgqvFybQT-nethsm.backup1-passphrase.txt716+ nethsm user add 'Some Backup1' Backup backup1717backup1718+ nethsm env add credentials backup1 Backup719+ export NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.6egSZpP0k0-nethsm.metrics1-passphrase.txt720+ NETHSM_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.6egSZpP0k0-nethsm.metrics1-passphrase.txt721+ nethsm user add 'Some Metrics1' Metrics metrics1722metrics1723+ nethsm env add credentials metrics1 Metrics724++ nethsm user list725+ for user in $(nethsm user list)726+ nethsm user get admin727UserData { real_name: "admin", role: Administrator }728+ for user in $(nethsm user list)729+ nethsm user get admin1730UserData { real_name: "Some Admin1", role: Administrator }731+ for user in $(nethsm user list)732+ nethsm user get backup1733UserData { real_name: "Some Backup1", role: Backup }734+ for user in $(nethsm user list)735+ nethsm user get metrics1736UserData { real_name: "Some Metrics1", role: Metrics }737+ for user in $(nethsm user list)738+ nethsm user get operator1739UserData { real_name: "Some Operator1", role: Operator }740Ok([])741+ nethsm key generate --key-id signing1 --tags signing1 Curve25519 EdDsaSignature742signing1743+ nethsm key generate --key-id signing2 --tags signing2 EcP224 EcdsaSignature744signing2745+ nethsm key generate --key-id signing3 --tags signing2 EcP256 EcdsaSignature746signing3747+ nethsm key generate --key-id signing4 --tags signing2 EcP384 EcdsaSignature748signing4749+ nethsm key generate --key-id signing5 --tags signing2 EcP521 EcdsaSignature750signing5751+ nethsm key generate --key-id encdec1 --tags decryption1 --length 128 Generic AesDecryptionCbc AesEncryptionCbc752encdec1753+ nethsm key generate --key-id dec1 --tags decryption2 --length 2048 Rsa RsaDecryptionPkcs1754dec1755+ nethsm key generate --key-id signing6 --tags signing3 --length 2048 Rsa RsaSignaturePssSha512756signing6757++ nethsm key list758+ for key in $(nethsm key list)759+ nethsm key get dec1760PublicKey {761 mechanisms: [762 RsaDecryptionPkcs1,763 ],764 type: Rsa,765 restrictions: KeyRestrictions {766 tags: Some(767 [768 "decryption2",769 ],770 ),771 },772 public: Some(773 KeyPublicData {774 modulus: Some(775 "s+yXdWN+WjT22T5ApK4zwLs1s+USXz1fIg5qV9GTSEIPpxiDkmj2JeDJGCPi78Pa25sheBNmfoH8tP/7yZMBORdsaLMRVimdpxARa9pcCNtwinEyxBDv91xO82JdSXoBNRtv7GlWjn0C19FJoa+Ohbe2ONbD9b6yxf1YqajQMh7ksb9owSfc+vKruD8u5Wwiy+eO9pIjJRsoe+HMxSezUq5j7VMGwTxxjvvqYZFuMFQQMaCWIw2+yJCm0Nk1puqW4hTypPWjWUNU5eO6wlZ/jSUu0Fn12/R6EHJc7crQxqRfGXQbVLCUkzWXBZFz6zS4mfPQfzR2EUEwr2wzUVZD1w==",776 ),777 public_exponent: Some(778 "AQAB",779 ),780 data: None,781 },782 ),783 operations: 0,784}785+ for key in $(nethsm key list)786+ nethsm key get encdec1787PublicKey {788 mechanisms: [789 AesEncryptionCbc,790 AesDecryptionCbc,791 ],792 type: Generic,793 restrictions: KeyRestrictions {794 tags: Some(795 [796 "decryption1",797 ],798 ),799 },800 public: None,801 operations: 0,802}803+ for key in $(nethsm key list)804+ nethsm key get signing1805PublicKey {806 mechanisms: [807 EdDsaSignature,808 ],809 type: Curve25519,810 restrictions: KeyRestrictions {811 tags: Some(812 [813 "signing1",814 ],815 ),816 },817 public: Some(818 KeyPublicData {819 modulus: None,820 public_exponent: None,821 data: Some(822 "i13W5w4f51ecUgTBYaE/PNrj3mLQVHsiiMuBo2RkLNA=",823 ),824 },825 ),826 operations: 0,827}828+ for key in $(nethsm key list)829+ nethsm key get signing2830PublicKey {831 mechanisms: [832 EcdsaSignature,833 ],834 type: EcP224,835 restrictions: KeyRestrictions {836 tags: Some(837 [838 "signing2",839 ],840 ),841 },842 public: Some(843 KeyPublicData {844 modulus: None,845 public_exponent: None,846 data: Some(847 "BNrhjzJxke6U6yG6hFWbIiIDsk4HTDe49kNnnZGvomf3RZThTPMQNpze0Lb/uTaMfKg9ppnVJdZX",848 ),849 },850 ),851 operations: 0,852}853+ for key in $(nethsm key list)854+ nethsm key get signing3855PublicKey {856 mechanisms: [857 EcdsaSignature,858 ],859 type: EcP256,860 restrictions: KeyRestrictions {861 tags: Some(862 [863 "signing2",864 ],865 ),866 },867 public: Some(868 KeyPublicData {869 modulus: None,870 public_exponent: None,871 data: Some(872 "BLkdQe5/3tJcTB5zAa09ZnvpAVDxoitLgHxX2yWd/G26q7ghFXORVIOQr1gSdkkr8I97o8fXMM8DOxtMrY44f4o=",873 ),874 },875 ),876 operations: 0,877}878+ for key in $(nethsm key list)879+ nethsm key get signing4880PublicKey {881 mechanisms: [882 EcdsaSignature,883 ],884 type: EcP384,885 restrictions: KeyRestrictions {886 tags: Some(887 [888 "signing2",889 ],890 ),891 },892 public: Some(893 KeyPublicData {894 modulus: None,895 public_exponent: None,896 data: Some(897 "BIK+nn8qlKsGkSJNc4eABNLLnU5/Pyh/im8bzbgSsjYaq+e43kicsLnw5hfjCUAIPuE2s6qCcKbjIn/aJj47YeFC9CPiQ1sXph3ZKIoc0Ah7iIPwYxFpbjJPQKlwA6jqZg==",898 ),899 },900 ),901 operations: 0,902}903+ for key in $(nethsm key list)904+ nethsm key get signing5905PublicKey {906 mechanisms: [907 EcdsaSignature,908 ],909 type: EcP521,910 restrictions: KeyRestrictions {911 tags: Some(912 [913 "signing2",914 ],915 ),916 },917 public: Some(918 KeyPublicData {919 modulus: None,920 public_exponent: None,921 data: Some(922 "BAC0D+NWXhttaGKDZjGdp7/uxUBtqZbiUHIlWVKPdfMGA9hZmHuiR7IRmxcydVw/Y7GnbYDbtR9Z5h3v+pYgKasdnQARxksod2tkr3oYU7mBSsqDWwWLRb+cgsNr55OTcKjbc/j2CINimwHn0tIYwVeZZqIvyn2lVK53FIMt0SslFbqong==",923 ),924 },925 ),926 operations: 0,927}928+ for key in $(nethsm key list)929+ nethsm key get signing6930PublicKey {931 mechanisms: [932 RsaSignaturePssSha512,933 ],934 type: Rsa,935 restrictions: KeyRestrictions {936 tags: Some(937 [938 "signing3",939 ],940 ),941 },942 public: Some(943 KeyPublicData {944 modulus: Some(945 "wWWOovEGyEiXF9ZPstwXjgNFx+LQ6My/N94LehhwDToZ/28w8fHDyojE8mun9A8etil4MD/V2QtykmKwzziBpnvG2h9PqfRbT6EJ7CU61TcLoxU1kqbN/zvwBvKpg+auehpsxVapsp07Czxdq0XH3KRFcUqE74cec1JN3EpujeZGzYlUYpp+iZqdxEhY+SEbBt4nAP/jk94TFwq6BN4dGHFD26RAu9szPIfyX+3gkbHwJt/grp9JTmojQAatJ3t3cJnEHcTo0+5pRqYTy3wE7boD47UYzru1PPhRzsuLPjAeYtyaofaJD/b/KKVxIa/K/Ge0+DOZw68GRvBc5yerhw==",946 ),947 public_exponent: Some(948 "AQAB",949 ),950 data: None,951 },952 ),953 operations: 0,954}955++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.ed25519_cert.pem956+ ed25519_cert_pem=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.O577PfVsDa-nethsm.ed25519_cert.pem957++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.ed25519_cert.pkcs8.der958+ ed25519_cert_der=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.RWxpwkxKct-nethsm.ed25519_cert.pkcs8.der959+ openssl genpkey -algorithm ed25519 -out /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.O577PfVsDa-nethsm.ed25519_cert.pem960+ openssl pkcs8 -topk8 -inform pem -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.O577PfVsDa-nethsm.ed25519_cert.pem -outform der -nocrypt -out /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.RWxpwkxKct-nethsm.ed25519_cert.pkcs8.der961+ nethsm key import Curve25519 /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.RWxpwkxKct-nethsm.ed25519_cert.pkcs8.der EdDsaSignature --key-id signing7962signing7963+ nethsm key tag signing7 signing1964+ nethsm key get signing7965PublicKey {966 mechanisms: [967 EdDsaSignature,968 ],969 type: Curve25519,970 restrictions: KeyRestrictions {971 tags: Some(972 [973 "signing1",974 ],975 ),976 },977 public: Some(978 KeyPublicData {979 modulus: None,980 public_exponent: None,981 data: Some(982 "AzZv/uUeSml9NWoCQcIeUo2pqABZmUK+3K/tPX+q5F4=",983 ),984 },985 ),986 operations: 0,987}988+ nethsm user tag operator1 signing1989++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.readme.signature.sig990+ export NETHSM_KEY_SIGNATURE_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig991+ NETHSM_KEY_SIGNATURE_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig992++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.pubkey.pem993+ export NETHSM_KEY_PUBKEY_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem994+ NETHSM_KEY_PUBKEY_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem995++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.message.dgst996+ message_digest=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst997+ nethsm user tag operator1 signing2998+ nethsm user tag operator1 signing3999+ nethsm key sign --force signing1 EdDsa README.md1000+ nethsm key public-key --force signing11001+ openssl pkeyutl -verify -in README.md -rawin -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1002Signature Verified Successfully1003+ nethsm key sign --force signing2 EcdsaP224 README.md1004+ nethsm key public-key --force signing21005+ openssl dgst -sha224 -binary README.md1006+ openssl pkeyutl -verify -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1007Signature Verified Successfully1008+ nethsm key sign --force signing3 EcdsaP256 README.md1009+ nethsm key public-key --force signing31010+ openssl dgst -sha256 -binary README.md1011+ openssl pkeyutl -verify -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1012Signature Verified Successfully1013+ nethsm key sign --force signing4 EcdsaP384 README.md1014+ nethsm key public-key --force signing41015+ openssl dgst -sha384 -binary README.md1016+ openssl pkeyutl -verify -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1017Signature Verified Successfully1018+ nethsm key sign --force signing5 EcdsaP521 README.md1019+ nethsm key public-key --force signing51020+ openssl dgst -sha512 -binary README.md1021+ openssl pkeyutl -verify -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1022Signature Verified Successfully1023+ nethsm key sign --force signing6 PssSha512 README.md1024+ nethsm key public-key --force signing61025+ openssl dgst -sha512 -binary README.md1026+ openssl pkeyutl -verify -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Vup0gEOxAJ-nethsm.message.dgst -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin -pkeyopt rsa_padding_mode:pss -pkeyopt digest:sha512 -pkeyopt rsa_pss_saltlen:-11027Signature Verified Successfully1028+ nethsm key sign --force signing7 EdDsa README.md1029+ nethsm key public-key --force signing71030+ openssl pkeyutl -verify -in README.md -rawin -sigfile /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.zIsEwYfOyX-nethsm.readme.signature.sig -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin1031Signature Verified Successfully1032+ nethsm user untag operator1 signing31033++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.message.txt1034+ message=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qZ80Gkoee3-nethsm.message.txt1035+ printf 'Hello World! This is a message!!'1036++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.iv.txt1037+ export NETHSM_KEY_ENCRYPT_IV=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.lRCKshUg2a-nethsm.iv.txt1038+ NETHSM_KEY_ENCRYPT_IV=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.lRCKshUg2a-nethsm.iv.txt1039+ printf 'This is unsafe!!'1040++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.symmetric-encrypted-message.txt.enc1041+ export NETHSM_KEY_ENCRYPT_OUTPUT=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Sd5wlnS24y-nethsm.symmetric-encrypted-message.txt.enc1042+ NETHSM_KEY_ENCRYPT_OUTPUT=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Sd5wlnS24y-nethsm.symmetric-encrypted-message.txt.enc1043+ nethsm user tag operator1 decryption11044+ nethsm key encrypt encdec1 /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qZ80Gkoee3-nethsm.message.txt1045+ export NETHSM_KEY_DECRYPT_IV=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.lRCKshUg2a-nethsm.iv.txt1046+ NETHSM_KEY_DECRYPT_IV=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.lRCKshUg2a-nethsm.iv.txt1047++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.decrypted-message.txt1048+ export NETHSM_KEY_DECRYPT_OUTPUT=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1049+ NETHSM_KEY_DECRYPT_OUTPUT=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1050+ nethsm key decrypt encdec1 /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.Sd5wlnS24y-nethsm.symmetric-encrypted-message.txt.enc AesCbc1051+ cat /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1052Hello World! This is a message!!++ b2sum /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1053++ cut -d ' ' -f11054++ b2sum /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qZ80Gkoee3-nethsm.message.txt1055++ cut -d ' ' -f11056+ [[ f65d62d842437602312e6e2ef9af086d1ffd27bf06886d7fc5513de3c103c9ad8826a1ed9727a1470ade0dc1f63681b026ab4ed978f8aecde5c74808ece285ea == \f\6\5\d\6\2\d\8\4\2\4\3\7\6\0\2\3\1\2\e\6\e\2\e\f\9\a\f\0\8\6\d\1\f\f\d\2\7\b\f\0\6\8\8\6\d\7\f\c\5\5\1\3\d\e\3\c\1\0\3\c\9\a\d\8\8\2\6\a\1\e\d\9\7\2\7\a\1\4\7\0\a\d\e\0\d\c\1\f\6\3\6\8\1\b\0\2\6\a\b\4\e\d\9\7\8\f\8\a\e\c\d\e\5\c\7\4\8\0\8\e\c\e\2\8\5\e\a ]]1057+ nethsm user tag operator1 decryption21058+ unset NETHSM_KEY_DECRYPT_IV NETHSM_KEY_ENCRYPT_IV1059+ nethsm key public-key --force dec11060++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.asymmetric-encrypted-message.txt.enc1061+ asymmetric_enc_message=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e2Eah1fYU0-nethsm.asymmetric-encrypted-message.txt.enc1062+ openssl pkeyutl -encrypt -inkey /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qcy2UdVkmA-nethsm.pubkey.pem -pubin -in /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qZ80Gkoee3-nethsm.message.txt -out /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e2Eah1fYU0-nethsm.asymmetric-encrypted-message.txt.enc1063+ nethsm key decrypt dec1 /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.e2Eah1fYU0-nethsm.asymmetric-encrypted-message.txt.enc Pkcs1 --force1064+ cat /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1065Hello World! This is a message!!++ b2sum /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.66JUjG4FJI-nethsm.decrypted-message.txt1066++ cut -d ' ' -f11067++ b2sum /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.qZ80Gkoee3-nethsm.message.txt1068++ cut -d ' ' -f11069+ [[ f65d62d842437602312e6e2ef9af086d1ffd27bf06886d7fc5513de3c103c9ad8826a1ed9727a1470ade0dc1f63681b026ab4ed978f8aecde5c74808ece285ea == \f\6\5\d\6\2\d\8\4\2\4\3\7\6\0\2\3\1\2\e\6\e\2\e\f\9\a\f\0\8\6\d\1\f\f\d\2\7\b\f\0\6\8\8\6\d\7\f\c\5\5\1\3\d\e\3\c\1\0\3\c\9\a\d\8\8\2\6\a\1\e\d\9\7\2\7\a\1\4\7\0\a\d\e\0\d\c\1\f\6\3\6\8\1\b\0\2\6\a\b\4\e\d\9\7\8\f\8\a\e\c\d\e\5\c\7\4\8\0\8\e\c\e\2\8\5\e\a ]]1070+ for key in signing{1..7} dec11071+ nethsm key public-key signing1 --force1072+ for key in signing{1..7} dec11073+ nethsm key public-key signing2 --force1074+ for key in signing{1..7} dec11075+ nethsm key public-key signing3 --force1076+ for key in signing{1..7} dec11077+ nethsm key public-key signing4 --force1078+ for key in signing{1..7} dec11079+ nethsm key public-key signing5 --force1080+ for key in signing{1..7} dec11081+ nethsm key public-key signing6 --force1082+ for key in signing{1..7} dec11083+ nethsm key public-key signing7 --force1084+ for key in signing{1..7} dec11085+ nethsm key public-key dec1 --force1086+ nethsm key csr signing7 example.com1087-----BEGIN CERTIFICATE REQUEST-----1088MIGVMEkCAQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wKjAFBgMrZXADIQADNm/+10895R5KaX01agJBwh5SjamoAFmZQr7cr+09f6rkXqAAMAUGAytlcANBAAdeXW6NbHhC1090XQ9d/V4lxplythqQLGf7Jkhcaj+pQry9l9b+MDdEDtTId/6HczqAG+Db7rr286ag10916SkTw2ufcgg=1092-----END CERTIFICATE REQUEST-----1093++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.random.txt1094+ export NETHSM_RANDOM_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.WZA4EhIZC5-nethsm.random.txt1095+ NETHSM_RANDOM_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.WZA4EhIZC5-nethsm.random.txt1096+ nethsm random 2001097+ [[ -f /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.WZA4EhIZC5-nethsm.random.txt ]]1098+ nethsm metrics1099{"decrypt":"2","encrypt":"1","gc compactions":"1","gc major bytes":"15695872","gc major collections":"20","gc minor collections":"1065","generate":"8","http response 200":"46","http response 201":"12","http response 204":"9","http response time":"0.0344795","http response total":"67","kv write":"21","log errors":"0","log warnings":"3","sign":"7","uptime":"10"}1100+ nethsm config get boot-mode1101Attended1102+ nethsm config set boot-mode Unattended1103+ nethsm config get boot-mode1104Unattended1105+ nethsm config get logging1106LoggingConfig { ip_address: "0.0.0.0", port: 514, log_level: Info }1107+ nethsm config get network1108NetworkConfig { ip_address: "192.168.1.1", netmask: "255.255.255.0", gateway: "0.0.0.0" }1109+ nethsm config get time11102024-07-24T11:39:13Z1111+ nethsm config set time1112+ nethsm config get time11132024-07-24T11:39:14Z1114+ nethsm config get tls-certificate1115-----BEGIN CERTIFICATE-----1116MIIBHzCBxaADAgECAgkA1QYhQQNg5ngwCgYIKoZIzj0EAwIwFDESMBAGA1UEAwwJ1117a2V5ZmVuZGVyMCAXDTcwMDEwMTAwMDAwMFoYDzk5OTkxMjMxMjM1OTU5WjAUMRIw1118EAYDVQQDDAlrZXlmZW5kZXIwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATW/lw01119sDdby0nE3ZdHzKKrK3drF9V/99CUGiwDP6X2sui3oP+ye3XqYMmiYUY/9O4uEu7a1120gxg0Dxyeuzjy0Lu6MAoGCCqGSM49BAMCA0kAMEYCIQCAtuMThZPSeUWzgqsSj50O1121PIboyZLWIt3FOeHLzRtNeAIhAIanEdDDJ3ImlixmB5j/sYdKxDY/ZVGJ7MyrCVTq1122C47a1123-----END CERTIFICATE-----1124+ nethsm config set tls-generate Rsa 40961125+ nethsm config get tls-certificate1126-----BEGIN CERTIFICATE-----1127MIIEqzCCApOgAwIBAgIJAIsQCd8OmNJQMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV1128BAMMCWtleWZlbmRlcjAgFw03MDAxMDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVow1129FDESMBAGA1UEAwwJa2V5ZmVuZGVyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC1130CgKCAgEA0a7bB4RwJZgM14jQl6ZG65NZr8OSdEtakFVzB/d97AmC/HPRaGg0f1xG1131BbvlN1/TAmh90kuemcUe927WJMvl04XsTZ0FwkmHQhLNm0HY6z/86QZ6lLEK3o0G1132SIRRRix2p9x/nJxoQHVxkidA0AhB3K+TscTl8KuiuEYUarHn0dCxApX2F5In6+vi1133mOpX5bpLKkrcJq7b99LbStz8unBupswIbMYUNICEneXYWIVSq5H0JVp3galmRdtr1134/Q9LD+b61Jyi8h3iKuOPVgxla3ZdhWAqfMea1NdlaKUOj2ZepXMAF19n7q7vbbbq1135ITLpN83cdU3hGjGRyeiMr4aqbJClv8F05pvRBobWqdhHhGn+2//2LPbsUhkqDRhI1136aPgvne3UxtneOopcFt1LlfjSBpvMf/Hz6yDHgRkBT5ydRvlt92csGsmrFtIVLlg11137m1B7kbLM/dg32OO1J9YOU3X6mqCErKnxSfl+aJvbAspRiczV11yvd+lR3ljizUrT11386KgSlnDfx7QHR4VHnRZ7lnV4zmSDXOPBMGSEVAzhPUROWeD6cbYlXdxsFEyfkpLi1139W4MRDSBNhQPnkyDp1oRqFV5B8eBal8uZTC0b6/0yFhyKw2yufUy3/WFn1CCR0byw1140P1ny6zyUIjo5lbn+iupvS9UWb52q33c6Nqsg2bOPQfUgITHB1bkCAwEAATANBgkq1141hkiG9w0BAQsFAAOCAgEAXFV8bIxhCfYDkp34Cky8jQm+LZbTYOafaRPJUerTXiod1142Pc0Om5o9ZxeQBXGIvYuTz/dJJnHcLAwKxVnbdnQjPMJ/HR6prXVSjKfh68s+Dtvm1143QrlcMpKZLvacT562uwfJC74dmUitsSNkp255yT3j2FcW1JYFhdKYFv16oko/Ba251144mdPi317j48+s017ZhkXdbb93bqHikkW8H3eU9Kg8rdRp65xZFEA/tbPhlzfWjEVp1145TXVxPtLtpKyDhsmzgIjd2j9gBlOq2iFB2wuMJNChmfImqrKPboIgX4QLwmJn1+Wa1146MBuNNPClUU6uqspneo03/wE3j8muJd2LWQJeih0dtlC/BokWcoQOHWKrJbkzqA+K1147vsHBkHJ7kxfhgt4C9urPM9luCtzCDYiOgs/k5xTouWTSawbRxpZd1j3Fw4wXlS5s1148SkaGom5SmRoYSy2LGl6/jbI3ZP9MtEV/v6E5tbMIVpHHCeap6J2zJ7e+BqLRLClw11498cmYGBfXw7leVppTV2cULo8tWnHzOcG3DpnWp/D6iG1W3y9f3ZN4dfFndjLUHiqq1150tzfSkp1hZJuDrZTlLR61Vr2fiHZdmYvFSetEsvEk//Mg+r6+H/5OO64rvCA0BJcu1151oAn/LZJRSKJe3g1u5IpM/3m2nkI9Il0D3TncWFQkmaERueJcgfxumF9Fvs4vtEw=1152-----END CERTIFICATE-----1153+ nethsm config get tls-public-key1154-----BEGIN PUBLIC KEY-----1155MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0a7bB4RwJZgM14jQl6ZG115665NZr8OSdEtakFVzB/d97AmC/HPRaGg0f1xGBbvlN1/TAmh90kuemcUe927WJMvl115704XsTZ0FwkmHQhLNm0HY6z/86QZ6lLEK3o0GSIRRRix2p9x/nJxoQHVxkidA0AhB11583K+TscTl8KuiuEYUarHn0dCxApX2F5In6+vimOpX5bpLKkrcJq7b99LbStz8unBu1159pswIbMYUNICEneXYWIVSq5H0JVp3galmRdtr/Q9LD+b61Jyi8h3iKuOPVgxla3Zd1160hWAqfMea1NdlaKUOj2ZepXMAF19n7q7vbbbqITLpN83cdU3hGjGRyeiMr4aqbJCl1161v8F05pvRBobWqdhHhGn+2//2LPbsUhkqDRhIaPgvne3UxtneOopcFt1LlfjSBpvM1162f/Hz6yDHgRkBT5ydRvlt92csGsmrFtIVLlg1m1B7kbLM/dg32OO1J9YOU3X6mqCE1163rKnxSfl+aJvbAspRiczV11yvd+lR3ljizUrT6KgSlnDfx7QHR4VHnRZ7lnV4zmSD1164XOPBMGSEVAzhPUROWeD6cbYlXdxsFEyfkpLiW4MRDSBNhQPnkyDp1oRqFV5B8eBa1165l8uZTC0b6/0yFhyKw2yufUy3/WFn1CCR0bywP1ny6zyUIjo5lbn+iupvS9UWb52q116633c6Nqsg2bOPQfUgITHB1bkCAwEAAQ==1167-----END PUBLIC KEY-----1168+ nethsm config get tls-csr example.com1169-----BEGIN CERTIFICATE REQUEST-----1170MIIEWzCCAkMCAQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb31171DQEBAQUAA4ICDwAwggIKAoICAQDRrtsHhHAlmAzXiNCXpkbrk1mvw5J0S1qQVXMH1172933sCYL8c9FoaDR/XEYFu+U3X9MCaH3SS56ZxR73btYky+XThexNnQXCSYdCEs2b1173QdjrP/zpBnqUsQrejQZIhFFGLHan3H+cnGhAdXGSJ0DQCEHcr5OxxOXwq6K4RhRq1174sefR0LEClfYXkifr6+KY6lfluksqStwmrtv30ttK3Py6cG6mzAhsxhQ0gISd5dhY1175hVKrkfQlWneBqWZF22v9D0sP5vrUnKLyHeIq449WDGVrdl2FYCp8x5rU12VopQ6P1176Zl6lcwAXX2furu9ttuohMuk3zdx1TeEaMZHJ6IyvhqpskKW/wXTmm9EGhtap2EeE1177af7b//Ys9uxSGSoNGEho+C+d7dTG2d46ilwW3UuV+NIGm8x/8fPrIMeBGQFPnJ1G1178+W33ZywayasW0hUuWDWbUHuRssz92DfY47Un1g5TdfqaoISsqfFJ+X5om9sCylGJ1179zNXXXK936VHeWOLNStPoqBKWcN/HtAdHhUedFnuWdXjOZINc48EwZIRUDOE9RE5Z11804PpxtiVd3GwUTJ+SkuJbgxENIE2FA+eTIOnWhGoVXkHx4FqXy5lMLRvr/TIWHIrD1181bK59TLf9YWfUIJHRvLA/WfLrPJQiOjmVuf6K6m9L1RZvnarfdzo2qyDZs49B9SAh1182McHVuQIDAQABoAAwDQYJKoZIhvcNAQELBQADggIBAM3aC1StKxg2Wt99QEkq5M0q1183YTfRfqxQrLbB8p/B6Xs4ycYsEddcJH7Rsn+z3GRqeG9jX7ec44j4iztMJktW4Cst11844qrKNf5xp9sUstsspNsbRFtfPVLuGRYLv6edtOWD3PTd30qYqhrtFhrhr0Q/3aFG11852n3he8OvwlpNqr3osow+HJ9WnSJ/MWN9WglmAKcwvtkM0JV2WayP+Uv/lmuu6Uam1186zV2t7BNaFmiR70M6H0d13VEF2K80eRSbB6mocStd0Oz6INRnJOILFVveKKL11Iyk1187yf2qJQzJy2Y0PkeyM5NGsUxz9lDn2ONppT6XtUKjYzM2zvuvVM1NmNIyqDhAztvY1188YabzO6BZa9nh2F8QX9oNd1nwhglCRhE1GQZhW6VBZ6R79dMRf2zstjemsT6czs0C1189rMciyzJUWZtFuQVZiH6zf+ccR/O++TaiO1Sh0g6P+I3/KU+wabdcoTriq+o/vl4z1190FMl5JSU9Jn1XyO2jUucpcSGNp0zin5Ol2uG9MCZrclMvxS082M63flSdME6KpXil1191yhzUJyNndO8lYCyNjiOTS5VUaY6uAyk8jvFgcGXTc4qGsatbLlSQCJPtCDZFlho11192gr4v3gx3qeZN+ArefIkYodoiY1bHdMqPU0PKJEiqLY2DCHbt3Yt/a0W1dYmsLWb61193kZuzJOoz/LSUgg7gk2vL1194-----END CERTIFICATE REQUEST-----1195++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.backup-passphrase.txt1196+ nethsm_backup_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.cNGZw1HV3j-nethsm.backup-passphrase.txt1197+ printf my-very-unsafe-backup-passphrase1198+ export NETHSM_NEW_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.cNGZw1HV3j-nethsm.backup-passphrase.txt1199+ NETHSM_NEW_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.cNGZw1HV3j-nethsm.backup-passphrase.txt1200++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.initial-backup-passphrase.txt1201+ nethsm_initial_backup_passphrase_file=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.AW10iHiB95-nethsm.initial-backup-passphrase.txt1202+ touch /tmp/tmp.anoqJB5JNN.nethsm-test/tmp.AW10iHiB95-nethsm.initial-backup-passphrase.txt1203+ export NETHSM_OLD_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.AW10iHiB95-nethsm.initial-backup-passphrase.txt1204+ NETHSM_OLD_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.AW10iHiB95-nethsm.initial-backup-passphrase.txt1205+ nethsm config set backup-passphrase1206+ export NETHSM_OLD_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.8fXbvoHaxh-nethsm.unlock-passphrase.txt1207+ NETHSM_OLD_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.8fXbvoHaxh-nethsm.unlock-passphrase.txt1208++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.unlock-passphrase.txt1209+ export NETHSM_NEW_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hHld7RJxqK-nethsm.unlock-passphrase.txt1210+ NETHSM_NEW_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hHld7RJxqK-nethsm.unlock-passphrase.txt1211+ printf my-new-unsafe-unlock-passphrase1212+ nethsm config set unlock-passphrase1213+ nethsm lock1214+ nethsm health state1215Locked1216+ nethsm health alive1217+ export NETHSM_UNLOCK_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hHld7RJxqK-nethsm.unlock-passphrase.txt1218+ NETHSM_UNLOCK_PASSPHRASE_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.hHld7RJxqK-nethsm.unlock-passphrase.txt1219+ nethsm unlock1220+ nethsm health state1221Operational1222+ nethsm health ready1223+ nethsm system info1224SystemInfo {1225 software_version: "1.1",1226 software_build: "v1.1-rc2-2-g9483994",1227 firmware_version: "N/A",1228 hardware_version: "N/A",1229 device_id: "0000000000",1230 ak_pub: Object {},1231 pcr: Object {},1232}1233++ mktemp --tmpdir=/tmp/tmp.anoqJB5JNN.nethsm-test --dry-run --suffix -nethsm.backup-file.bkp1234+ export NETHSM_BACKUP_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.kjqhVLFOBR-nethsm.backup-file.bkp1235+ NETHSM_BACKUP_OUTPUT_FILE=/tmp/tmp.anoqJB5JNN.nethsm-test/tmp.kjqhVLFOBR-nethsm.backup-file.bkp1236+ nethsm system backup1237+ rm -r -- /tmp/tmp.anoqJB5JNN.nethsm-test1238+ stop_container1239+ podman container stop 76136e88808b1ef19a7e6effcf1d65a2c14df655eed4ed8344fc24e825936fa71240time="2024-07-24T11:39:26Z" level=warning msg="The cgroupv2 manager is set to systemd but there is no systemd user session available"1241time="2024-07-24T11:39:26Z" level=warning msg="For using systemd, you may need to log in using a user session"1242time="2024-07-24T11:39:26Z" level=warning msg="Alternatively, you can enable lingering with: `loginctl enable-linger 1000` (possibly as root)"1243time="2024-07-24T11:39:26Z" level=warning msg="Falling back to --cgroup-manager=cgroupfs"1244time="2024-07-24T11:39:26Z" level=warning msg="The cgroupv2 manager is set to systemd but there is no systemd user session available"1245time="2024-07-24T11:39:26Z" level=warning msg="For using systemd, you may need to log in using a user session"1246time="2024-07-24T11:39:26Z" level=warning msg="Alternatively, you can enable lingering with: `loginctl enable-linger 1000` (possibly as root)"1247time="2024-07-24T11:39:26Z" level=warning msg="Falling back to --cgroup-manager=cgroupfs"1248cargo test --all -- --ignored1249 Downloading crates ...1250 Downloaded futures-core v0.3.301251 Downloaded winnow v0.5.401252 Downloaded ulid v1.1.21253 Downloaded vcpkg v0.2.151254 Downloaded regex-syntax v0.8.41255 Downloaded futures-executor v0.3.301256 Downloaded mime v0.3.171257 Downloaded want v0.3.11258 Downloaded sync_wrapper v0.1.21259 Downloaded proc-macro-crate v3.1.01260 Downloaded rustls-pemfile v1.0.41261 Downloaded whoami v1.5.11262 Downloaded uuid v1.10.01263 Downloaded tracing-core v0.1.321264 Downloaded reqwest v0.11.271265 Downloaded openssl v0.10.661266 Downloaded encoding_rs v0.8.341267 Downloaded regex-automata v0.4.71268 Downloaded tokio v1.38.01269 Downloaded gimli v0.29.01270 Downloaded h2 v0.3.261271 Downloaded tracing v0.1.401272 Downloaded toml_edit v0.21.11273 Downloaded typed-builder-macro v0.18.21274 Downloaded tokio-native-tls v0.3.11275 Downloaded rstest_macros v0.21.01276 Downloaded openssl-sys v0.9.1031277 Downloaded testdir v0.9.11278 Downloaded signal-hook-registry v1.4.21279 Downloaded relative-path v1.9.31280 Downloaded pin-utils v0.1.01281 Downloaded futures-timer v3.0.31282 Downloaded path-dedot v3.1.11283 Downloaded native-tls v0.2.121284 Downloaded hyper-tls v0.5.01285 Downloaded httpdate v1.0.31286 Downloaded http-body v0.4.61287 Downloaded futures-macro v0.3.301288 Downloaded futures-channel v0.3.301289 Downloaded object v0.36.11290 Downloaded foreign-types-shared v0.1.11291 Downloaded foreign-types v0.3.21292 Downloaded ct-codecs v1.1.11293 Downloaded regex v1.10.51294 Downloaded hyper v0.14.301295 Downloaded futures-util v0.3.301296 Downloaded typed-builder v0.18.21297 Downloaded try-lock v0.2.51298 Downloaded tracing-attributes v0.1.271299 Downloaded tokio-util v0.7.111300 Downloaded tokio-macros v2.3.01301 Downloaded sysinfo v0.26.91302 Downloaded pkg-config v0.3.301303 Downloaded pin-project-lite v0.2.141304 Downloaded path-absolutize v3.1.11305 Downloaded openssl-macros v0.1.11306 Downloaded ipnet v2.9.01307 Downloaded httparse v1.9.41308 Downloaded http v0.2.121309 Downloaded glob v0.3.11310 Downloaded futures-io v0.3.301311 Downloaded futures v0.3.301312 Downloaded fnv v1.0.71313 Downloaded cargo_metadata v0.14.21314 Downloaded cargo-platform v0.1.81315 Downloaded camino v1.1.71316 Downloaded async-trait v0.1.811317 Downloaded anyhow v1.0.861318 Downloaded aho-corasick v1.1.31319 Downloaded addr2line v0.22.01320 Downloaded tower-service v0.3.21321 Downloaded testresult v0.4.01322 Downloaded socket2 v0.5.71323 Downloaded slab v0.4.91324 Downloaded serde_urlencoded v0.7.11325 Downloaded rustc-demangle v0.1.241326 Downloaded rustainers v0.12.01327 Downloaded rstest v0.21.01328 Downloaded mio v0.8.111329 Downloaded futures-task v0.3.301330 Downloaded futures-sink v0.3.301331 Downloaded ed25519-compact v2.1.11332 Downloaded bytes v1.6.11333 Downloaded bitflags v2.6.01334 Downloaded backtrace v0.3.731335 Compiling proc-macro2 v1.0.861336 Compiling unicode-ident v1.0.121337 Compiling serde v1.0.2041338 Compiling libc v0.2.1551339 Compiling cfg-if v1.0.01340 Compiling subtle v2.6.11341 Compiling version_check v0.9.41342 Compiling typenum v1.17.01343 Compiling generic-array v0.14.71344 Compiling const-oid v0.9.61345 Compiling quote v1.0.361346 Compiling getrandom v0.2.151347 Compiling syn v2.0.711348 Compiling cc v1.1.21349 Compiling rand_core v0.6.41350 Compiling autocfg v1.3.01351 Compiling base64ct v1.6.01352 Compiling once_cell v1.19.01353 Compiling pem-rfc7468 v0.7.01354 Compiling pin-project-lite v0.2.141355 Compiling itoa v1.0.111356 Compiling equivalent v1.0.11357 Compiling hashbrown v0.14.51358 Compiling memchr v2.7.41359 Compiling indexmap v2.2.61360 Compiling semver v1.0.231361 Compiling slab v0.4.91362 Compiling futures-sink v0.3.301363 Compiling futures-core v0.3.301364 Compiling cpufeatures v0.2.121365 Compiling pkg-config v0.3.301366 Compiling vcpkg v0.2.151367 Compiling rustc_version v0.4.01368 Compiling futures-channel v0.3.301369 Compiling ff v0.13.01370 Compiling tinyvec_macros v0.1.11371 Compiling base16ct v0.2.01372 Compiling pin-utils v0.1.01373 Compiling futures-task v0.3.301374 Compiling openssl-sys v0.9.1031375 Compiling futures-io v0.3.301376 Compiling bytes v1.6.11377 Compiling spin v0.9.81378 Compiling ryu v1.0.181379 Compiling libm v0.2.81380 Compiling log v0.4.221381 Compiling tinyvec v1.8.01382 Compiling group v0.13.01383 Compiling ring v0.17.81384 Compiling num-traits v0.2.191385 Compiling percent-encoding v2.3.11386 Compiling serde_json v1.0.1201387 Compiling rustls-pki-types v1.7.01388 Compiling unicode-normalization v0.1.231389 Compiling form_urlencoded v1.2.11390 Compiling signal-hook-registry v1.4.21391 Compiling socket2 v0.5.71392 Compiling mio v0.8.111393 Compiling serde_derive v1.0.2041394 Compiling zeroize_derive v1.4.21395 Compiling futures-macro v0.3.301396 Compiling tokio-macros v2.3.01397 Compiling futures-util v0.3.301398 Compiling unicode-bidi v0.3.151399 Compiling openssl-probe v0.1.51400 Compiling adler v1.0.21401 Compiling ppv-lite86 v0.2.171402 Compiling rand_chacha v0.3.11403 Compiling idna v0.5.01404 Compiling miniz_oxide v0.7.41405 Compiling tokio v1.38.01406 Compiling foreign-types-shared v0.1.11407 Compiling openssl v0.10.661408 Compiling fnv v1.0.71409 Compiling rustversion v1.0.171410 Compiling untrusted v0.9.01411 Compiling http v0.2.121412 Compiling foreign-types v0.3.21413 Compiling rand v0.8.51414 Compiling tracing-attributes v0.1.271415 Compiling zeroize v1.8.11416 Compiling block-buffer v0.10.41417 Compiling crypto-common v0.1.61418 Compiling digest v0.10.71419 Compiling der v0.7.91420 Compiling signature v2.2.01421 Compiling hmac v0.12.11422 Compiling hkdf v0.12.41423 Compiling crypto-bigint v0.5.51424 Compiling sha2 v0.10.81425 Compiling rfc6979 v0.4.01426 Compiling spki v0.7.31427 Compiling pkcs8 v0.10.21428 Compiling sec1 v0.7.31429 Compiling elliptic-curve v0.13.81430 Compiling url v2.5.21431 Compiling primeorder v0.13.61432 Compiling ecdsa v0.16.91433 Compiling openssl-macros v0.1.11434 Compiling tracing-core v0.1.321435 Compiling rustls v0.23.111436 Compiling bitflags v2.6.01437 Compiling thiserror v1.0.621438 Compiling base64 v0.21.71439 Compiling base64 v0.22.11440 Compiling native-tls v0.2.121441 Compiling httparse v1.9.41442 Compiling tracing v0.1.401443 Compiling tokio-util v0.7.111444 Compiling rustls-webpki v0.102.51445 Compiling aho-corasick v1.1.31446 Compiling num-integer v0.1.461447 Compiling thiserror-impl v1.0.621448 Compiling curve25519-dalek v4.1.31449 Compiling crc32fast v1.4.21450 Compiling toml_datetime v0.6.61451 Compiling num-bigint-dig v0.8.41452 Compiling winnow v0.5.401453 Compiling try-lock v0.2.51454 Compiling camino v1.1.71455 Compiling regex-syntax v0.8.41456 Compiling heck v0.4.11457 Compiling strum_macros v0.25.31458 Compiling toml_edit v0.21.11459 Compiling want v0.3.11460 Compiling regex-automata v0.4.71461 Compiling flate2 v1.0.301462 Compiling num-iter v0.1.451463 Compiling h2 v0.3.261464 Compiling ed25519 v2.2.31465 Compiling http-body v0.4.61466 Compiling curve25519-dalek-derive v0.1.11467 Compiling webpki-roots v0.26.31468 Compiling lazy_static v1.5.01469 Compiling rstest_macros v0.21.01470 Compiling backtrace v0.3.731471 Compiling byteorder v1.5.01472 Compiling smallvec v1.13.21473 Compiling gimli v0.29.01474 Compiling anyhow v1.0.861475 Compiling tower-service v0.3.21476 Compiling httpdate v1.0.31477 Compiling hyper v0.14.301478 Compiling addr2line v0.22.01479 Compiling ureq v2.10.01480 Compiling regex v1.10.51481 Compiling proc-macro-crate v3.1.01482 Compiling strum v0.25.01483 Compiling tokio-native-tls v0.3.11484 Compiling rustls-pemfile v2.1.21485 Compiling pkcs1 v0.7.51486 Compiling hex v0.4.31487 Compiling cargo-platform v0.1.81488 Compiling futures-executor v0.3.301489 Compiling object v0.36.11490 Compiling relative-path v1.9.31491 Compiling rustc-demangle v0.1.241492 Compiling glob v0.3.11493 Compiling iana-time-zone v0.1.601494 Compiling chrono v0.4.381495 Compiling futures v0.3.301496 Compiling rsa v0.9.61497 Compiling cargo_metadata v0.14.21498 Compiling rustls-native-certs v0.7.11499 Compiling hyper-tls v0.5.01500 Compiling ed25519-dalek v2.1.11501 Compiling nethsm-sdk-rs v1.0.11502 Compiling rustls-pemfile v1.0.41503 Compiling p521 v0.13.31504 Compiling p384 v0.13.01505 Compiling p224 v0.13.21506 Compiling p256 v0.13.21507 Compiling sha1 v0.10.61508 Compiling md-5 v0.10.61509 Compiling secrecy v0.8.01510 Compiling serde_urlencoded v0.7.11511 Compiling typed-builder-macro v0.18.21512 Compiling sysinfo v0.26.91513 Compiling path-dedot v3.1.11514 Compiling encoding_rs v0.8.341515 Compiling mime v0.3.171516 Compiling sync_wrapper v0.1.21517 Compiling futures-timer v3.0.31518 Compiling ipnet v2.9.01519 Compiling whoami v1.5.11520 Compiling testdir v0.9.11521 Compiling reqwest v0.11.271522 Compiling rstest v0.21.01523 Compiling typed-builder v0.18.21524 Compiling path-absolutize v3.1.11525 Compiling ulid v1.1.21526 Compiling async-trait v0.1.811527 Compiling testresult v0.4.01528 Compiling ct-codecs v1.1.11529 Compiling nethsm v0.3.0 (/builds/wiktor/signstar/nethsm)1530 Compiling ed25519-compact v2.1.11531 Compiling rustainers v0.12.01532 Compiling uuid v1.10.01533 Compiling utf8parse v0.2.21534 Compiling anstyle-parse v0.2.41535 Compiling serde_spanned v0.6.61536 Compiling winnow v0.6.131537 Compiling anstyle v1.0.71538 Compiling is_terminal_polyfill v1.70.01539 Compiling anstyle-query v1.1.01540 Compiling colorchoice v1.0.11541 Compiling option-ext v0.2.01542 Compiling anstream v0.6.141543 Compiling dirs-sys v0.4.11544 Compiling toml_edit v0.22.151545 Compiling rtoolbox v0.0.21546 Compiling heck v0.5.01547 Compiling strsim v0.11.11548 Compiling clap_lex v0.7.11549 Compiling clap_builder v4.5.91550 Compiling clap_derive v4.5.81551 Compiling directories v5.0.11552 Compiling rprompt v2.1.11553 Compiling rpassword v7.3.11554 Compiling toml v0.8.141555 Compiling confy v0.6.11556 Compiling clap v4.5.91557 Compiling nethsm-cli v0.1.0 (/builds/wiktor/signstar/nethsm-cli)1558 Finished `test` profile [unoptimized + debuginfo] target(s) in 44.34s1559 Running unittests src/lib.rs (target/debug/deps/nethsm-d0ee942ec3bff897)1560running 0 tests1561test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 73 filtered out; finished in 0.00s1562 Running tests/certificates.rs (target/debug/deps/certificates-ba5cfb7c0d4a7b09)1563running 1 test1564test certificates ... ok1565test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 20.82s1566 Running tests/config.rs (target/debug/deps/config-6abeacf1afcaf9d5)1567running 15 tests1568test boot_mode ... ok1569test commit_update ... ok1570test cancel_update ... ok1571test factory_reset ... ok1572test fail_upload_update ... ok1573test get_tls_public_key ... ok1574test create_backup ... ok1575test logging ... ok1576test lock ... ok1577test network ... ok1578test metrics ... ok1579test reboot ... ok1580test shutdown ... ok1581test time ... ok1582test tls_cert ... ok1583test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 39.45s1584 Running tests/encryption.rs (target/debug/deps/encryption-a7892301763731d9)1585running 2 tests1586test asymmetric_decryption ... ok1587test symmetric_encryption_decryption ... ok1588test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 9.53s1589 Running tests/health.rs (target/debug/deps/health-5c7b282ce6d414e8)1590running 3 tests1591test state ... ok1592test alive ... ok1593test ready ... ok1594test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.93s1595 Running tests/provisioning.rs (target/debug/deps/provisioning-fb4a2912cba4e0e0)1596running 1 test1597test initial_provisioning ... ok1598test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.50s1599 Running tests/random.rs (target/debug/deps/random-030d8020d081cd06)1600running 1 test1601test get_random_bytes ... ok1602test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.80s1603 Running tests/signing.rs (target/debug/deps/signing-ecf292d89982c3ec)1604running 1 test1605test signing ... ok1606test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.66s1607 Running tests/system.rs (target/debug/deps/system-c466ec608c973f20)1608running 1 test1609test system_info ... ok1610test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 9.89s1611 Running tests/users.rs (target/debug/deps/users-e29f7abee1fc9055)1612running 1 test1613test create_users ... ok1614test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.20s1615 Running unittests src/main.rs (target/debug/deps/nethsm-5714ff376e7a36a1)1616running 0 tests1617test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s1618 Doc-tests nethsm1619running 0 tests1620test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 68 filtered out; finished in 0.00s1622Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.1623Warning: Permanently added '192.168.122.34' (ED25519) to the list of known hosts.1624Job succeeded