====== Proprieta CryptoConfig.OpenSslPath ====== Ottiene o imposta il percorso alla libreria OpenSSL. ---- ===== Definizione ===== namespace WvdS.System.Security.Cryptography public static string? OpenSslPath { get; set; } ---- ===== Valore della proprieta ===== | Tipo | ''string?'' | | Valore predefinito | ''null'' (ricerca automatica) | ---- ===== Note ===== Se ''null'', la libreria cerca automaticamente OpenSSL: ^ Piattaforma ^ Percorsi di ricerca ^ | Windows x64 | ''libcrypto-3-x64.dll'' nella directory applicazione, PATH | | Linux | ''libcrypto.so.3'' in LD_LIBRARY_PATH, /usr/lib | | macOS | ''libcrypto.3.dylib'' in DYLD_LIBRARY_PATH, /opt/homebrew/lib | ---- ===== Requisiti ===== OpenSSL **3.6.0 o superiore** e richiesto per il supporto ML-DSA e ML-KEM. ---- ===== Esempi ===== ==== Windows ==== CryptoConfig.OpenSslPath = @"C:\OpenSSL-3.6\bin\libcrypto-3-x64.dll"; ==== Linux ==== CryptoConfig.OpenSslPath = "/opt/openssl-3.6/lib64/libcrypto.so.3"; ==== macOS ==== CryptoConfig.OpenSslPath = "/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib"; ---- ===== Eccezioni ===== | DllNotFoundException | Libreria OpenSSL non trovata o non caricabile | | InvalidOperationException | Versione OpenSSL < 3.6 | ---- ===== Vedi anche ===== * [[.:start|Classe CryptoConfig]] * [[.:enablepostquantum|Metodo EnablePostQuantum]] {{tag>eigenschaft property openssl}} ---- //Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//