Ruft den Pfad zur OpenSSL-Library ab oder legt ihn fest.
namespace WvdS.System.Security.Cryptography public static string? OpenSslPath { get; set; }
| Typ | string? |
| Standardwert | null (automatische Suche) |
Wenn null, sucht die Bibliothek automatisch nach OpenSSL:
| Plattform | Suchpfade |
|---|---|
| Windows x64 | libcrypto-3-x64.dll im Anwendungsverzeichnis, PATH |
| Linux | libcrypto.so.3 in LD_LIBRARY_PATH, /usr/lib |
| macOS | libcrypto.3.dylib in DYLD_LIBRARY_PATH, /opt/homebrew/lib |
OpenSSL 3.6.0 oder höher ist erforderlich für ML-DSA und ML-KEM Unterstützung.
CryptoConfig.OpenSslPath = @"C:\OpenSSL-3.6\bin\libcrypto-3-x64.dll";
CryptoConfig.OpenSslPath = "/opt/openssl-3.6/lib64/libcrypto.so.3";
CryptoConfig.OpenSslPath = "/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib";
| DllNotFoundException | OpenSSL-Library nicht gefunden oder nicht ladbar |
| InvalidOperationException | OpenSSL-Version < 3.6 |
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional