⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createcert.h

📁 使用windows csp 簽發2048 bits 憑證
💻 H
字号:
//===================================================================
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Copyright 1998 - 2000. Microsoft Corporation. All Right Reserved.
// File: CreateCert.h
//
//===================================================================
#ifndef __CreateCert__
#define __CreateCert__

void PrintUsage(void);
BOOL ImportCertificate(
         LPSTR szCertFile,
         LPSTR szKeyFile,
         LPSTR szPassword,
         LPSTR szStore,
         BOOL bUser,
         DWORD dwProviderNum);

BOOL CreateCertificate(
         LPSTR szX509,
         DWORD dwKeyType,
         LPSTR szSigAlg,
         WORD wMonths,
         DWORD dwCertEnhKeyUsage,
         BOOL bCA,
         BOOL bUseProv,
         DWORD dwProviderNum,
         LPSTR szSubjectStore,
         BOOL bSubjectUser,
         BOOL bSelfSigned,
         LPSTR szIssuerName,
         LPSTR szIssuerStore,
         BOOL bIssuerUser,
         BOOL bExport,
         LPSTR szCertFile,
         LPSTR szKeyFile,
         LPSTR szPassword);

PCCERT_CONTEXT FindCertificate(
         LPSTR szCertName,
         LPSTR szStore,
         DWORD dwFlags,
         PCRYPT_DATA_BLOB *KeyId,
         HCRYPTPROV *hProv,
         LPDWORD dwKeyType);

BOOL WINAPI MyCryptEnumProviders(
         DWORD dwIndex,
         LPDWORD Res,
         DWORD dwFlags,
         LPDWORD pdwProvType,
         LPTSTR szProvName,
         LPDWORD pcbProvName);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -