====== X509Certificates Namespace ====== **Namespace:** ''WvdS.System.Security.Cryptography.X509Certificates'' Enthält Extension Methods für X.509-Zertifikatoperationen mit PQ-Unterstützung. ---- ===== Klassen ===== ^ Klasse ^ Beschreibung ^ | [[.:certificaterequestextensions|CertificateRequestExtensions]] | Extensions für ''CertificateRequest'' | | [[.:x509certificate2extensions|X509Certificate2Extensions]] | Extensions für ''X509Certificate2'' | | [[.:x509chainextensions|X509ChainExtensions]] | Extensions für ''X509Chain'' | | [[.:x509certificate2exportextensions|X509Certificate2ExportExtensions]] | PFX Export/Import mit PQ-Keys | | [[.:x509storeextensions|X509StoreExtensions]] | Store-Operationen mit PQ-Key-Persistenz | | [[.:certificaterevocationlistextensions|CertificateRevocationListExtensions]] | CRL-Erstellung mit PQ-Signaturen | | [[.:revocationextensions|RevocationExtensions]] | Widerrufsprüfung (CRL/OCSP) | | [[.:truststoreextensions|TrustStoreExtensions & PqTrustStore]] | Custom Trust Store Management | ---- ===== Erweiterte Typen ===== Diese Klassen erweitern die folgenden .NET-Typen: ^ .NET-Typ ^ Extension-Klasse ^ | ''System.Security.Cryptography.X509Certificates.CertificateRequest''((Microsoft Docs: https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.certificaterequest)) | CertificateRequestExtensions | | ''System.Security.Cryptography.X509Certificates.X509Certificate2''((Microsoft Docs: https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2)) | X509Certificate2Extensions, RevocationExtensions | | ''System.Security.Cryptography.X509Certificates.X509Chain''((Microsoft Docs: https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509chain)) | X509ChainExtensions | | ''System.Security.Cryptography.X509Certificates.X509Store''((Microsoft Docs: https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509store)) | X509StoreExtensions | | ''System.Security.Cryptography.X509Certificates.CertificateRevocationListBuilder''((Microsoft Docs: https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.certificaterevocationlistbuilder)) | CertificateRevocationListExtensions | ---- ===== Beispiel ===== using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using WvdS.System.Security.Cryptography; using WvdS.System.Security.Cryptography.X509Certificates; CryptoConfig.DefaultMode = CryptoMode.Hybrid; using var rsa = RSA.Create(2048); var request = new CertificateRequest("CN=Test", rsa, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); // Extension-Method wird automatisch verwendet var cert = request.CreateSelfSigned( DateTimeOffset.Now, DateTimeOffset.Now.AddYears(1)); // PQ-Status prüfen bool hasPq = cert.HasPqSignature(); // true ---- ===== Siehe auch ===== * [[..:cryptoconfig|CryptoConfig Klasse]] * [[..:signatures|Signatures Namespace]] * [[..:start|API-Übersicht]] {{tag>namespace x509 zertifikate}} ---- //Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional//