curl/tests/certs
Viktor Szakats 3e2860f66d
genserv.pl: detect openssl in PATH, omit command -v
Before this patch the script relied on Perl `system()` finding `openssl`
in `PATH`, plus tried to display the full path of `openssl` by using
`command -v` (or `which` on Windows). `command -v` did not work in CI
for unknown reasons. To resolve it, this patch detects `openssl` in
`PATH` manually, displays the detected full path and calls `openssl`
with the detected full path, and stops relying on `system` for this.

It also follows how `sshhelp.pm` is detecting executables. Though this
patch uses Perl `-f` instead of `-e && -d` used there .

Silencing this in CI logs:
```
Can't exec "command": No such file or directory at ../../../tests/certs/genserv.pl line 51.
```
Ref: https://github.com/curl/curl/actions/runs/14145795884/job/39632942668?pr=16865#step:39:108

Closes #16868
2025-03-30 23:36:18 +02:00
..
.gitignore runtests: generate certs dynamically, bump to EC-256, tidy up 2025-03-27 10:21:57 +01:00
CMakeLists.txt cmake: also build certs when building test executables 2025-03-30 13:35:09 +02:00
genserv.pl genserv.pl: detect openssl in PATH, omit command -v 2025-03-30 23:36:18 +02:00
Makefile.am runtests: rewrite genserv.sh in Perl 2025-03-29 12:35:33 +01:00
Makefile.inc runtests: generate certs dynamically, bump to EC-256, tidy up 2025-03-27 10:21:57 +01:00
srp-verifier-conf TLS-SRP: support added when using GnuTLS 2011-01-19 20:35:02 +01:00
srp-verifier-db TLS-SRP: support added when using GnuTLS 2011-01-19 20:35:02 +01:00
test-ca.cnf tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-ca.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-localhost-san-first.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-localhost-san-last.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-localhost.nn.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-localhost.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00
test-localhost0h.prm tests/certs: cleanup 2025-03-06 16:02:34 +01:00