Commit 3218ced8 authored by Sergei Zimmerman's avatar Sergei Zimmerman
Browse files

rathole: regenerate expired self-signed certs for tests

Upstream dummy self-signed cert has expired and now tests fail:

```
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:f6:27:75:97:e5:99:b0:d5:ff:7d:02:f8:11:d0:4a:23:6f:51:34
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN=MyOwnCA, C=US, L=San Fransisco
        Validity
            Not Before: Feb 15 05:04:49 2024 GMT
            Not After : Feb  5 05:04:49 2025 GMT
```
parent 704e5761
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -33,6 +33,12 @@ rustPlatform.buildRustPackage {

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [ openssl ];
  preCheck = ''
    patchShebangs examples/tls/create_self_signed_cert.sh
    (cd examples/tls && chmod +x create_self_signed_cert.sh && ./create_self_signed_cert.sh)
  '';

  passthru.tests = {
    inherit (nixosTests) rathole;
  };