Hier erfahren Sie, wie Sie OpenSSL für verschiedene Plattformen kompilieren.
| Ziel | Plattform | Anleitung |
|---|---|---|
| .NET auf Windows | Windows x64 | Windows x64 Build |
| FIPS 140-3 Compliance | Windows x64 | FIPS Build |
| Blazor WebAssembly | WASM | WASM/Blazor Build |
| Docker/Container | Linux | Linux Build (WSL) |
Nicht sicher? Starten Sie mit dem Windows x64 Build - er deckt die meisten Anwendungsfälle ab.
Brauche ich FIPS?
Brauche ich WASM?
Der häufigste Build für .NET-Anwendungen:
perl Configure VC-WIN64A --prefix=D:\Projects\openssl-3.6.0\bin nmake nmake install_sw
Ergebnis:
libcrypto-3-x64.dll - Kryptographie-Bibliotheklibssl-3-x64.dll - TLS-Bibliothekopenssl.exe - Kommandozeilen-ToolFür FIPS 140-3 Compliance:
perl Configure VC-WIN64A enable-fips --prefix=D:\Projects\openssl-3.6.0\bin nmake nmake install_sw install_fips
Zusätzliches Ergebnis:
fips.dll - FIPS Provider Modulfipsmodule.cnf - FIPS KonfigurationFür Blazor WebAssembly:
# In WSL mit Emscripten emconfigure ./Configure linux-generic32 no-asm no-threads no-shared emmake make
Ergebnis:
openssl.js - JavaScript-Wrapperopenssl.wasm - WebAssembly-ModulFür Docker-Container oder Linux-Server:
./Configure linux-x86_64 --prefix=/opt/openssl make -j$(nproc) make install
Ergebnis:
libcrypto.so.3 - Shared Librarylibssl.so.3 - TLS Library
Die wichtigsten Configure Optionen:
| Option | Beschreibung |
|---|---|
VC-WIN64A | Target: Visual C++, Windows 64-bit |
linux-x86_64 | Target: Linux 64-bit |
–prefix=<pfad> | Installationsverzeichnis |
–openssldir=<pfad> | Konfigurationsverzeichnis |
no-asm | Keine Assembly (langsamer, aber ohne NASM) |
no-shared | Nur statische Libraries |
enable-fips | FIPS Provider aktivieren |
no-threads | Keine Thread-Unterstützung (für WASM) |
| Plattform | Hardware | Dauer |
|---|---|---|
| Windows x64 | i7, 16GB RAM | 10-15 Min |
| Windows x64 | i5, 8GB RAM | 20-30 Min |
| WASM | Beliebig | 5-10 Min |
| Linux | 4 Cores | 5-10 Min |
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional