Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

233 lines
11 KiB

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: makecert.rc
//
//--------------------------------------------------------------------------
#include <windows.h>
#include <ntverp.h>
#include "cryptver.h"
#define VER_FILETYPE VFT_APP
#define VER_FILESUBTYPE VFT2_UNKNOWN
#define VER_FILEDESCRIPTION_STR "ECM MakeCert"
#define VER_INTERNALNAME_STR "MAKECERT.EXE"
#define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
//
// PVK
//
IDR_PVKROOT PVK DISCARDABLE "root.pvk"
/////////////////////////////////////////////////////////////////////////////
//
// CER
//
IDR_ROOTCERTIFICATE CER DISCARDABLE "root.cer"
STRINGTABLE DISCARDABLE
BEGIN
IDS_SWITCH1 "/"
IDS_SWITCH2 "-"
IDS_SYNTAX "Usage: MakeCert [ basic|extended options] [outputCertificateFile]\n"
IDS_BASIC_OPTIONS "Basic Options\n"
IDS_EXTENDED_OPTIONS "Extended Options\n"
IDS_OPTION_SK "sk"
IDS_OPTION_SK_DESC " -sk <keyName> Subject's key container name; To be created if not present\n"
#if (1) //DSIE: Bug 205195.
IDS_OPTION_PE "pe"
IDS_OPTION_PE_DESC " -pe Mark generated private key as exportable\n"
#endif
IDS_OPTION_SC "sc"
IDS_OPTION_SC_DESC " -sc <file> Subject's certificate file\n"
IDS_OPTION_SV "sv"
IDS_OPTION_SV_DESC " -sv <pvkFile> Subject's PVK file; To be created if not present\n"
IDS_OPTION_SQ "sq"
IDS_OPTION_SQ_DESC " -sq <reqFile> Subject's PKCS#10 request file\n"
IDS_OPTION_IK "ik"
IDS_OPTION_IK_DESC " -ik <keyName> Issuer's key container name\n"
IDS_OPTION_IC "ic"
IDS_OPTION_IC_DESC " -ic <file> Issuer's certificate file\n"
IDS_OPTION_IV "iv"
IDS_OPTION_IV_DESC " -iv <pvkFile> Issuer's PVK file\n"
IDS_OPTION_IS "is"
IDS_OPTION_IS_DESC " -is <store> Issuer's certificate store name.\n"
IDS_OPTION_IR "ir"
IDS_OPTION_IR_DESC " -ir <location> Issuer's certificate store location\n"
IDS_OPTION_IN "in"
IDS_OPTION_IN_DESC " -in <name> Issuer's certificate common name.(eg: Fred Dews)\n"
IDS_OPTION_CU "CurrentUser"
IDS_OPTION_LM "LocalMachine"
IDS_OPTION_SERIAL "#"
IDS_OPTION_SERIAL_DESC " -# <number> Serial Number from 1 to 2^31-1. Default to be unique\n"
IDS_OPTION_AUTH "$"
IDS_OPTION_AUTH_DESC " -$ <authority> The signing authority of the certificate\n"
IDS_OPTION_AUTH_IND "individual"
IDS_OPTION_AUTH_COM "commercial"
IDS_OPTION_ALGO "a"
IDS_OPTION_ALGO_DESC " -a <algorithm> The signature algorithm\n"
IDS_OPTION_ALGO_SHA "sha1"
IDS_OPTION_ALGO_MD5 "md5"
IDS_OPTION_VALUES_DEFAULT " <%s|%s>. Default to '%s'\n"
IDS_OPTION_VALUES_2 " <%s|%s>\n"
IDS_OPTION_IY "iy"
IDS_OPTION_IY_DESC " -iy <type> Issuer's CryptoAPI provider's type\n"
IDS_OPTION_IP "ip"
IDS_OPTION_IP_DESC " -ip <provider> Issuer's CryptoAPI provider's name\n"
IDS_OPTION_SY "sy"
IDS_OPTION_SY_DESC " -sy <type> Subject's CryptoAPI provider's type\n"
IDS_OPTION_SP "sp"
IDS_OPTION_SP_DESC " -sp <provider> Subject's CryptoAPI provider's name\n"
IDS_OPTION_SS "ss"
IDS_OPTION_SS_DESC " -ss <store> Subject's certificate store name that stores the output \n"
IDS_OPTION_SS_DESC1 " certificate\n"
IDS_OPTION_SR "sr"
IDS_OPTION_SR_DESC " -sr <location> Subject's certificate store location.\n"
IDS_OPTION_N "n"
IDS_OPTION_N_DESC " -n <X509name> Certificate subject X500 name (eg: CN=Fred Dews)\n"
IDS_OPTION_L "l"
IDS_OPTION_L_DESC " -l <link> Link to the policy information (such as a URL)\n"
IDS_OPTION_IKY "iky"
IDS_OPTION_IKY_DESC " -iky <keytype> Issuer key type\n"
IDS_OPTION_SKY "sky"
IDS_OPTION_SKY_DESC " -sky <keytype> Subject key type\n"
IDS_OPTION_VALUES_KY " <%s|%s|<integer>>.\n"
IDS_OPTION_KY_SIG "signature"
IDS_OPTION_KY_EXC "exchange"
IDS_OPTION_CY "cy"
IDS_OPTION_CY_DESC " -cy <certType> Certificate types\n"
IDS_OPTION_CY_END "end"
IDS_OPTION_CY_AUTH "authority"
IDS_OPTION_B "b"
IDS_OPTION_B_DESC " -b <mm/dd/yyyy> Start of the validity period; default to now. \n"
IDS_OPTION_TIME_DESC " First try <mm/dd/yy> format. If failed, use <dd/mm/yy> format. \n"
IDS_OPTION_M "m"
IDS_OPTION_M_DESC " -m <number> The number of months for the cert validity period\n"
IDS_OPTION_E "e"
IDS_OPTION_E_DESC " -e <mm/dd/yyyy> End of validity period; defaults to 2039\n"
IDS_OPTION_H "h"
IDS_OPTION_H_DESC " -h <number> Max height of the tree below this cert\n"
IDS_OPTION_G "g"
IDS_OPTION_G_DESC " -g Create a glue certificate\n"
IDS_OPTION_R "r"
IDS_OPTION_R_DESC " -r Create a self signed certificate\n"
IDS_OPTION_NSCP "nscp"
IDS_OPTION_NSCP_DESC " -nscp Include netscape client auth extension\n"
IDS_OPTION_EXTENDED "!"
IDS_OPTION_EXTENDED_DESC " -! Return a list of extended options\n"
IDS_OPTION_BASIC "?"
IDS_OPTION_BASIC_DESC " -? Return a list of basic options\n"
IDS_OPTION_ENHKEY_USAGE "eku"
IDS_OPTION_NOPUBKEYPARA "nopubkeypara"
IDS_OPTION_NOPUBKEYPARA_DESC " -nopubkeypara No public key parameters\n"
IDS_OPTION_DH_PARA "dhp"
IDS_OPTION_DH_PARA_DESC " -dhp <file> Use Diffie Hellman Parameters from Certificate File\n"
IDS_OPTION_KEY_LEN "len"
IDS_OPTION_KEY_LEN_DESC " -len <number> Generated Key Length (Bits)\n"
IDS_OPTION_NOPUBVERIFY "npv"
IDS_OPTION_NOPUBVERIFY_DESC " -npv Do not verify issuer public key\n"
IDS_OPTION_TEST "~"
IDS_OPTION_ENHKEY_USAGE_DESC " -eku <oid[<,oid>]> Comma separated enhanced key usage OIDs\n"
IDS_ERR_SK_SV "Error: -sk and -sv can not be set at the same time. Use either -sk or -sv \n"
IDS_ERR_TOO_MANY_PARAM "Error: Too many parameters\n"
IDS_ERR_LAST "Error: %s failed => 0x%x (%d) \n"
IDS_ERR_CANNOT_OPEN "Error: Can't open %s\n"
IDS_ERR_EMPTY_FILE "Error: Empty file %s\n"
IDS_ERR_CANNOT_ALLOC "Error: Can't alloc %d bytes\n"
IDS_ERR_CANNOT_READ "Error: Can't read %s\n"
IDS_ERR_COINIT "Error: CoInitialize failed\n"
IDS_ERR_FAILED "Failed\n"
IDS_ERR_LOAD_ROOT "Error: Can't load the root certificate\n"
IDS_ERR_ROOT_KEY "Error: Can't access the key of the root\n"
IDS_ERR_LOAD_ISSUER "Error: Can't load the issuer certificate ('%s')\n"
IDS_ERR_MISMATCH "Error: Issuer's public key doesn't correspond to its private key\n"
IDS_ERR_ISSUER_KEY "Error: Can't access the key of the issuer ('%s')\n"
IDS_ERR_BAD_PSW "Error: Bad password or private key file for subject ('%s')\n"
IDS_ERR_SUB_FILE_EXIST "Error: File already exists for the subject ('%s')\n"
IDS_ERR_SUB_FILE_CREATE "Error: Unable to create file for the subject ('%s')\n"
IDS_ERR_SUB_KEY "Error: Can't access the key of the subject ('%s')\n"
IDS_ERR_SUB_KEY_CREATE "Error: Can't create the key of the subject ('%s')\n"
IDS_ERR_CANNOT_LOAD_SUB_CERT "Error: Can't load the subject certificate file ('%s')\n"
IDS_ERR_NO_ALGO "Error: Invalid algorithm\n"
IDS_ERR_NO_KY "Error: Invalid key type\n"
IDS_ERR_NO_CY "Error: Invalid cert type\n"
IDS_ERR_NO_AUTH "Error: Invalid signing authority\n"
IDS_ERR_NO_IR "Error: Invalid issuer store location\n"
IDS_ERR_SELF_SIGNED "Error: Self signed cert can only be a signature key\n"
IDS_ERR_DESC_ALLOC "Error: Out of memory"
IDS_ERR_NO_OUTPUT "Error: Please either specify the outputCertificateFile or -ss option\n"
IDS_ERR_NO_PROV_FROM_CERT "Error: Fail to acquire a security provider from the issuer's certificate\n"
IDS_ERR_NO_ISSUER_CERT "Error: There is no matching certificate in the issuer's %s cert store\n"
IDS_ERR_MORE_ISSUER_CERT "Error: There are more than one matching certificate in the issuer's %s cert store\n"
IDS_ERR_NO_ISSUER_CER_FILE "Error: Has to specify -ic option. \n"
IDS_ERR_EITHER_STORE_OR_KEY "Error: Either -is or -ik has to be specified. \n"
IDS_ERR_TOO_MANY_STORE_KEY "Error: -is, -in can not be set with -iv, -ik, -iy and -iky. \n"
IDS_ERR_CERT_FILE_NAME "Error: -in and -ic can not be set at the same time.\n"
IDS_ERR_INVALID_B "Error: Invalid input parameter for -b option. \n"
IDS_ERR_INVALID_E "Error: Invalid input parameter for -e option. \n"
IDS_NO_ISSUER_FOR_SELF_SIGNED "Error: Can not specify issuer's private key information for self signed certificate. Please use -sp and -sy instead. \n"
IDS_NO_PKCS10_AND_SELF_SIGNED "Error: Can not specify -sq and -r at the same time. \n"
IDS_ERR_DH_PARA_FILE "Error: Invalid Diffie Hellman parameter file %s\n"
IDS_NO_PKCS10_AND_SUBJECT_PVK "Error: -sq can not be set with -sc, -sk, -sky, -sp, -sv, and -sy. \n"
IDS_INVALID_REQUEST_FILE "Error: The PKCS#10 request file %s does not exist or contains invalid information.\n"
IDS_INVALID_ATTR_REQUEST_FILE "Error: The PKCS#10 request file %s contains invalid attributes.\n"
#if (1) //DSIE: Bug 205195.
IDS_ERR_PE_CONTAINER "Error: Unable to create the key container.\n"
#endif
IDS_ERR_DESC_WRITE "WriteFile"
IDS_ERR_DESC_SAVE_STORE "Save encoded certificate to store"
IDS_ERR_SIGN_ENCODE_CB "CryptSignAndEncodeCertificate(cbEncoded == 0)"
IDS_ERR_SIGN_ENCODE "CryptSignAndEncodeCertificate"
IDS_ERR_EXPORT_PUB "CryptExportPublicKeyInfo"
IDS_CERT_STR_TO_NAME "CryptCertStrToNameW"
IDS_CRYPT_HASH_CERT "CryptHashCertificate"
IDS_CRYPT_HASP_PUB "CryptHashPublicKeyInfo"
IDS_ENCODE_AUTH_KEY "CryptEncodeObject(X509_AUTHORITY_KEY_ID)"
IDS_ENCODE_SPC_AGENCY "CryptEncodeObject(SPC_SP_AGENCY_INFO_OBJID)"
IDS_ENCODE_UNICODE_NAME_VALUE "CryptEncodeObject(X509_UNICODE_NAME_VALUE)"
IDS_ENCODE_KEY_USAGE "CryptEncodeObject(X509_KEY_USAGE_RESTRICTION)"
IDS_ENCODE_FINANCIAL "CryptEncodeObject(SPC_FINANCIAL_CRITERIA_STRUCT)"
IDS_ENCODE_BASIC_CONSTRAINTS2 "CryptEncodeObject(X509_BASIC_CONSTRAINTS)"
IDS_SUCCEEDED "Succeeded\n"
IDS_MAKECERT_ROOT "MakeCertRoot"
IDS_ROOT "Root"
IDS_CER "CER"
IDS_PVK "PVK"
IDS_GLUE "Glue"
IDS_BACK_SLASH "\\"
IDS_JOE_SOFT "JoeSoft"
IDS_JOE_NAME "CN=Joe's-Software-Emporium"
IDS_ROOT_SIGNATURE "Root Signature"
IDS_ISSUER_SIGNATURE "Issuer Signature"
IDS_SUB_SIG "Subject Key"
IDS_SUB_EXCHANGE "Subject Key"
IDS_REG_CA "CA"
IDS_REG_MY "my"
IDS_REG_ROOT "root"
IDS_NULL "\0"
IDS_PLUS "+"
END
#include <common.ver>