Esempio n. 1
0
        internal static IntPtr CertCreateSelfSignCertificate(IntPtr providerHandle, CryptoApiBlob subjectIssuerBlob, int flags,
                                                             CryptKeyProvInfo keyProviderInformation, IntPtr signatureAlgorithm, SystemTime startTime,
                                                             SystemTime endTime, IntPtr extensions)
        {
            IntPtr result = IntPtr.Zero;

            Assert(() =>
            {
                result = _Extern.CertCreateSelfSignCertificate(providerHandle, ref subjectIssuerBlob, flags, ref keyProviderInformation,
                                                               signatureAlgorithm, ref startTime, ref endTime, extensions);
                return(result != IntPtr.Zero);
            });
            return(result);
        }
Esempio n. 2
0
 internal static void CertSetCertificateContextProperty(IntPtr certificateContext, int propertyId, int flags,
                                                        CryptKeyProvInfo data)
 {
     Assert(() => _Extern.CertSetCertificateContextProperty(certificateContext, propertyId, flags, ref data));
 }
Esempio n. 3
0
 internal static extern bool CertSetCertificateContextProperty(IntPtr certificateContext, int propertyId, int flags, ref CryptKeyProvInfo data);
Esempio n. 4
0
 internal static extern IntPtr CertCreateSelfSignCertificate(IntPtr providerHandle, ref CryptoApiBlob subjectIssuerBlob, int flags, ref CryptKeyProvInfo keyProviderInformation, IntPtr signatureAlgorithm, ref SystemTime startTime, ref SystemTime endTime, IntPtr extensions);