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.
|
|
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1997 - 1999 // // File: certmgr.rc // //--------------------------------------------------------------------------
#include <windows.h> #include <ntverp.h> #include "cryptver.h" #include "resource.h"
#define VER_FILETYPE VFT_APP #define VER_FILESUBTYPE VFT2_UNKNOWN #define VER_FILEDESCRIPTION_STR "ECM Certificate Manager"
#define VER_INTERNALNAME_STR "CERTMGR.EXE" #define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
IDI_APP ICON DISCARDABLE "certmgr.ico"
STRINGTABLE DISCARDABLE BEGIN
IDS_SYNTAX "Usage: CertMgr [options][-s [-r <location>][SourceStoreName]\n" IDS_SYNTAX1 " [-s [-r <location>][DestinationStoreName]\n" IDS_SUCCEEDED "CertMgr Succeeded\n" IDS_FAILED "CertMgr Failed\n" IDS_OPTIONS "Options: \n" IDS_OPTION_ADD "add" IDS_OPTION_ADD_DESC " -add Add certificates/CRLs/CTLs to a storeFile or a system store\n" IDS_OPTION_DEL "del" IDS_OPTION_DEL_DESC " -del Delete certificates/CRLs/CTLs from a storeFile or \n" IDS_OPTION_DEL_DESC1 " a system store\n" IDS_OPTION_PUT "put" IDS_OPTION_PUT_DESC " -put Put an encoded certificate/CRL/CTL from a storeFile or\n" IDS_OPTION_PUT_DESC1 " a system store to a file. The file will be saved in X.509\n" IDS_OPTION_PUT_DESC2 " format. -7 can be used to save the file in PKCS #7 format\n" IDS_OPTION_S "s" IDS_OPTION_S_DESC " -s Indicate the store is a system store \n" IDS_OPTION_R "r" IDS_OPTION_R_DESC " -r <location> The system store location \n" IDS_OPTION_MORE_VALUE " <%s|%s> Default to '%s' \n" IDS_R_CU "currentUser" IDS_R_LM "localMachine" IDS_OPTION_C "c" IDS_OPTION_C_DESC " -c Certificates in the store\n" IDS_OPTION_CRL "crl" IDS_OPTION_CRL_DESC " -crl Certificates revocation lists(CRLs) in the store\n" IDS_OPTION_CTL "ctl" IDS_OPTION_CTL_DESC " -ctl Certificates trust lists(CTLs) in the store\n" IDS_OPTION_V "v" IDS_OPTION_V_DESC " -v Verbose display of the certificates/CRLs/CTLs \n" IDS_OPTION_ALL "all" IDS_OPTION_ALL_DESC " -all All certificates/CRLs/CTLs in the store\n" IDS_OPTION_N "n" IDS_OPTION_N_DESC " -n <name> Common name of the certificate \n" IDS_OPTION_SHA1 "sha1" IDS_OPTION_SHA1_DESC " -sha1 <thumbPrint> The sha1 hash of the certificate/CRLs/CTLs \n" IDS_OPTION_7 "7" IDS_OPTION_7_DESC " -7 Save the destination store in PKCS #7 format\n" IDS_OPTION_E "e" IDS_OPTION_E_DESC " -e <encode> Certificate/CRL/CTL encoding type. \n" IDS_OPTION_E_DESC1 " Default to X509_ASN_ENCODING\n" IDS_OPTION_Y "y" IDS_OPTION_Y_DESC " -y <provider> CertStore provider name\n" IDS_OPTION_F "f" IDS_OPTION_F_DESC " -f <flag> CertStore open flags. Meaningful only if -y is set\n" IDS_ERR_TOO_MANY_PARAM "Error: Too many parameters\n" IDS_SWITCH1 "/" IDS_SWITCH2 "-" IDS_ERR_SINGLE_ACTION "Error: Only one option from -add, -del, -put can be used at a time\n" IDS_ERR_N_SHA1 "Error: -n and -sha1 can not be set at the same time\n" IDS_ERR_ALL_N_SHA1 "Error: -all can not be set with -n or -sha1\n" IDS_ERR_PROVIDER_SYSTEM "Error: -s or -r can not be set with -y or -f for the same store\n" IDS_ERR_SOURCE_STORE "Error: Missing SourceStoreName\n" IDS_ERR_STORE_PROVIDER "Error: Invalid name for the store provider\n" IDS_ERR_NO_REG "Error: Invalid value for -r option\n" IDS_ERR_SHA1_HASH "Error: Invalid value for -sha1 option\n" IDS_ERR_DISPLAY_TOO_MANY "Error: -s, -r, -n, -sha1, -7, <DestinationStoreName> can not be set for display\n" IDS_ERR_CTL_7 "Error: -7 and -CTL can not be set at the same time\n" IDS_ERR_C_CTL_CTL_ALL "Error: You must specify -all, -c, -CTL, -CRL for add or delete\n" IDS_ERR_DES_STORE "Error: Has to specify DestinationStoreName\n" IDS_ERR_SOURCE_SYSTEM_7 "Error: -7 is invalid for system destination store\n" IDS_ERR_OPEN_SOURCE_STORE "Error: Failed to open the source store\n" IDS_ERR_TMP_STORE "Error: Failed to open a temporary store\n" IDS_ERR_ADD_CERT_ALL "Error: Failed to add all certificates\n" IDS_ERR_DELETE_CERT_ALL "Error: Failed to add or delete certificates\n" IDS_ERR_NO_CERT_HASH "Error: Can not find a certificate matching the hash value\n" IDS_ERR_ADD_CERT "Error: Failed to add certificates\n" IDS_ERR_DELETE_CERT "Error: Failed to delete certificates\n" IDS_ERR_CERT_FIND "Error: Failed to build the certificate list\n" IDS_ERR_ADD_NO_CERT "Error: Failed to find a certificate to add\n" IDS_ERR_DELETE_NO_CERT "Error: Failed to find a certificate to delete\n" IDS_ERR_ADD_CRL_ALL "Error: Failed to add all CRLs\n" IDS_ERR_DELETE_CRL_ALL "Error: Failed to delete all CRLs\n" IDS_ERR_NO_CRL_HASH "Error: Can not find a CRL matching the hash value\n" IDS_ERR_ADD_CRL "Error: Failed to add CRLs\n" IDS_ERR_DELETE_CRL "Error: Failed to delete CRLs\n" IDS_ERR_CRL_FIND "Error: Failed to build the CRL list\n" IDS_ERR_ADD_CTL_ALL "Error: Failed to add all CTLs\n" IDS_ERR_DELETE_CTL_ALL "Error: Failed to delete all CTLs\n" IDS_ERR_NO_CTL_HASH "Error: Can not find a CTL matching the hash value\n" IDS_ERR_ADD_CTL "Error: Failed to add CTLs\n" IDS_ERR_DELETE_CTL "Error: Failed to delete CTLs\n" IDS_ERR_CTL_FIND "Error: Failed to build the CTL list\n" IDS_ERR_COPY_FROM_SRC "Error: Failed to access the source store\n" IDS_ERR_SAVE_DES_STORE "Error: Failed to save to the destination store\n" IDS_ERR_OPEN_DES_STORE "Error: Failed to open the destination store\n" IDS_ERR_GET_SINGER_COUNT "Error: Failed to get the count of signers\n" IDS_ERR_GET_SIGNER_CERT "Error: Failed to get the signer's certificate\n" IDS_CERT_INDEX "==============Certificate # %d ==========\n" IDS_ERR_DISPLAY "Error: Display failed\n" IDS_ENTER_ADD_INDEX_CERT "Enter cert # from the above list to add-->" IDS_ENTER_ADD_INDEX_CRL "Enter CRL # from the above list to add-->" IDS_ENTER_ADD_INDEX_CTL "Enter CTL # from the above list to add-->" IDS_ENTER_DELETE_INDEX_CERT "Enter cert # from the above list to delete-->" IDS_ENTER_DELETE_INDEX_CRL "Enter CRL # from the above list to delete-->" IDS_ENTER_DELETE_INDEX_CTL "Enter CTL # from the above list to delete-->" IDS_ENTER_PUT_INDEX_CERT "Enter cert # from the above list to put-->" IDS_ENTER_PUT_INDEX_CRL "Enter CRL # from the above list to put-->" IDS_ENTER_PUT_INDEX_CTL "Enter CTL # from the above list to put-->" IDS_ERR_INVALID_INDEX "Error: Invalid input. \n" IDS_CRL_INDEX "==============CRL # %d ==========\n" IDS_CTL_INDEX "==============CTL # %d ==========\n" IDS_NO_CERT "==============No Certificates ==========\n" IDS_NO_CTL "==============No CTLs ==========\n" IDS_NO_CRL "==============No CRLs ==========\n" IDS_NULL "<NULL>" IDS_SHA1 "SHA1" IDS_MD5 "MD5" IDS_UNKNOWN "<UNKNOWN OID>" IDS_SUBJECT "Subject::\n" IDS_ISSUER "Issuer::\n" IDS_SERIAL_NUMBER "SerialNumber::\n " IDS_KEY "Key " IDS_KEY_PROVIDER "Provider Type:: %d" IDS_PROV_NAME " Provider Name:: %s" IDS_FLAGS " Flags: 0x%x" IDS_CONTAINER " Container: %s" IDS_PARAM " Params: %d" IDS_KEY_SPEC " KeySpec: %d" IDS_NOT_BEFORE "NotBefore:: \n %s\n" IDS_NOT_AFTER "NotAfter:: \n %s\n" IDS_VERSION "Version:: %d\n" IDS_SIG_ALGO "SignatureAlgorithm:: " IDS_SIG_ALGO_PARAM "SignatureAlgorithm.Parameters::\n" IDS_SUB_KEY_ALGO "SubjectPublicKeyInfo.Algorithm:: " IDS_SUB_KEY_ALGO_PARAM "SubjectPublicKeyInfo.Algorithm.Parameters::\n" IDS_DSS_LENGTH "DSS Key Length:: %d bytes, %d bits\n" IDS_DSS_P "DSS P (little endian)::\n" IDS_DSS_Q "DSS Q (little endian)::\n" IDS_DSS_G "DSS G (little endian)::\n" IDS_SUB_KEY_INFO "SubjectPublicKeyInfo.PublicKey" IDS_BIT_LENGTH " (BitLength: %d)" IDS_UNUSED_BITS " (UnusedBits: %d)" IDS_RSA_CSP "RSA_CSP_PUBLICKEYBLOB::\n" IDS_DSS_Y "DSS Y (little endian)::\n" IDS_NO_PUB_KEY " No public key\n" IDS_ISSUER_ID "IssuerUniqueId" IDS_SUBJECT_ID "SubjectUniqueId" IDS_SUBJECT_USAGE "SubjectUsage::\n" IDS_NO_USAGE_IDS " No Usage Identifiers\n" IDS_LIST_DIS "ListIdentifier::\n " IDS_SEQUENCE "SequenceNumber::\n " IDS_THIS_UPDATE "ThisUpdate:: \n %s\n" IDS_NEXT_UPDATE "NextUpdate:: \n %s\n" IDS_TIME_INVALID "****** Time Invalid CTL\n" IDS_SUB_ALGO "SubjectAlgorithm:: " IDS_SUB_ALGO_PARAM "SubjectAlgorithm.Parameters::\n" IDS_NO_ENTRIES "----- No Entries -----\n" IDS_ENTRIES "----- Entries -----\n" IDS_SUB_ID " [%d] SubjectIdentifier::\n" IDS_ATTR " [%d] Attributes::\n" IDS_SERIAL_NUM_I " [%d] SerialNumber::" IDS_REVOC_DATE " [%d] RevocationDate:: %s\n" IDS_NO_EXTENSION " [%d] Extensions:: NONE\n" IDS_EXTENSION " [%d] Extensions::\n" IDS_DIS_NO_SIGNER "No signer\n" IDS_SIGNER_INDEX "----- Signer [%d] -----\n" IDS_SIGNER_INDEX_CERT "----- Signer [%d] Certificate-----\n") IDS_DIS_SIGNER_AUTH_ATTR "----- Signer [%d] AuthenticatedAttributes -----\n" IDS_DIS_SIGNER_UNAUTH_ATTR "----- Signer [%d] UnauthenticatedAttributes -----\n" IDS_NO_BYTE "%s NO Value Bytes\n" IDS_NEXT_UPDATE_LOCATION " NextUpdateLocation::\n" IDS_NO_VALUE_BYTES " NO Value Bytes\n" IDS_I_ID_NO_VALUE " [%d] %s :: No Values\n" IDS_OTHER_NAME "OtherName:\n" IDS_X400 "X400Address:\n" IDS_DIRECTORY_NAME "DirectoryName:\n" IDS_EDI_PARTY "EdiPartyName:\n" IDS_RFC "RFC822: %s\n" IDS_DNS "DNS: %s\n" IDS_ALT_NAME_URL "URL: %s\n" IDS_IP "IPAddress:\n" IDS_REG_ID "RegisteredID:" IDS_UNKNOWN_ALT_NAME "Unknown choice: %d\n" IDS_Thumbprint "%s Thumbprint:: \n " IDS_FILE_TIME "<FILETIME %08lX:%08lX>" IDS_MILLI_SECOND " <milliseconds:: %03d>" IDS_AUX_PROP_ID "Aux PropId %d (0x%x) ::\n" IDS_ENHANCED_KEY_USAGE " EnhancedKeyUsage::\n" IDS_NO_PROP_BYTES " NO Property Bytes\n" IDS_NO_USAGE_ID " No Usage Identifiers\n" IDS_CONTENT_SIG_ALGO "Content SignatureAlgorithm:: " IDS_CONTENT_SIG_ALGO_PARAM "Content SignatureAlgorithm.Parameters::\n" IDS_CONTEXT_SIG "Content Signature (little endian)::\n" IDS_DSS_R "DSS R (little endian)::\n" IDS_DSS_S "DSS S (little endian)::\n" IDS_DSS_INFO "DSS Signature (unexpected length, little endian)::\n" IDS_CONTENT_SIG_NONE "Content Signature:: NONE\n" IDS_VALUE_TYPE "ValueType: %d\n" IDS_STR " Str: " IDS_WSTR " WStr: %s\n" IDS_TRUE " True" IDS_FALSE " False" IDS_EXTENSION_INDEX "Extension[%d] " IDS_NAME_CRITICAL "(%s) Critical: " IDS_STRING "%s::\n" IDS_SUB_KEY_ID " <SubjectKeyIdentifer> \n" IDS_SUB_ALT " <Subject AltName> \n" IDS_ISS_ALT " <Issuer AltName> \n" IDS_SUB_ALT2 " <Subject AltName #2> \n" IDS_NEXT_UPDATE_LOC " <NextUpdateLocation> \n" IDS_CERT_POLICIES " <Certificate Policies> \n" IDS_NSCP_CERT " <NetscapeCertType> \n" IDS_NSCP_BASE " <NetscapeBaseURL> \n" IDS_NSCP_REV " <NetscapeRevocationURL> \n" IDS_NSCP_CA_REV " <NetscapeCARevocationURL> \n" IDS_NSCP_RENEW " <NetscapeCertRenewalURL> \n" IDS_NSCP_CA_URL " <NetscapeCAPolicyURL> \n" IDS_NSCP_SSL " <NetscapeSSLServerName> \n" IDS_NSCP_COM " <NetscapeComment> \n" IDS_SMIME " <SMIME Capabilties>\n" IDS_NONE " None\n" IDS_PARAMS " Parameters::\n" IDS_ENH_KEY_USAGE " <EnhancedKeyUsage> \n" IDS_COMMON_NAME " <Common Name> \n" IDS_VALUE_STRING " ValueType: %d String: " IDS_FIN_CRI " <FinancialCriteria> \n " IDS_FIN_AVAI "Financial Info Available." IDS_MEET_CRI " Meets Criteria." IDS_NO_MEET_CRI " Doesn't Meets Criteria." IDS_MIN_CRI " <MinimalCriteria> \n " IDS_MEET_MIN "Meets Minimal Criteria." IDS_NO_MEET_MIN "Doesn't Meet Minimal Criteria." IDS_SPC_URL "URL=> %s\n" IDS_SERIAL_DATA " SerializedData::\n" IDS_SPC_FILE "FILE=> %s\n" IDS_UNKNOWN_SPC "Unknown SPC Link Choice:: %d\n" IDS_SPC_AGENCY " <SpcSpAgencyInfo> \n" IDS_POL_INFO " PolicyInformation: " IDS_POL_DIS " PolicyDisplayText: %s\n" IDS_IMG_LINK " ImageLink: " IDS_BITMAP " Bitmap:\n" IDS_META_FILE " Metafile:\n" IDS_ENH_META " EnhancedMetafile:\n" IDS_GIF_FILE " GifFile:\n" IDS_LOGO_LINK " LogoLink: " IDS_QUALI " Qualifiers:: \n" IDS_ENCODED_DATA " Encoded Data::\n" IDS_KEY_USAGE " <KeyUsage> \n" IDS_BASIC_CON2 " <Basic Constraints2> \n" IDS_PATH_LEN " PathLenConstraint:: " IDS_BASIC_CON " <Basic Constraints> \n" IDS_SUB_TYPE " SubjectType:: " IDS_SUB_CA " CA " IDS_SUB_EE " END_ENTITY " IDS_SUB_CON " SubtreesConstraint[%d]::\n" IDS_DIG_SIG "DIGITAL_SIGNATURE " IDS_NON_REP "NON_REPUDIATION " IDS_KEY_ENCI "KEY_ENCIPHERMENT " IDS_DATA_ENCI "DATA_ENCIPHERMENT " IDS_KEY_AGRE "KEY_AGREEMENT " IDS_CERT_SIGN "KEY_CERT_SIGN " IDS_OFFLINE_CRL "OFFLINE_CRL_SIGN " IDS_KEY_RESTRIC " <KeyUsageRestriction> \n " IDS_CERT_POLICY " CertPolicySet::\n" IDS_RESTRIC_KEY " RestrictedKeyUsage:: " IDS_CRL_REASON " <CRL Reason> \n" IDS_CRL_UNSPECIFIED "REASON_UNSPECIFIED" IDS_KEY_COMP "KEY_COMPROMISE" IDS_CA_COMP "CA_COMPROMISE" IDS_AFFI_CHANGED "AFFILIATION_CHANGED" IDS_SUPERSEDED "SUPERSEDED" IDS_CESS_OPER "CESSATION_OF_OPERATION" IDS_CERT_HOLD "CERTIFICATE_HOLD" IDS_REMOVE_CRL "REMOVE_FROM_CRL" IDS_KEY_ATTR " <KeyAttributes>\n" IDS_KEY_ID " KeyId::\n" IDS_INTEND_KEY_USAGE " IntendedKeyUsage:: " IDS_NO_CRL_DIS " NO CRL Distribution Points\n" IDS_CRL_IDS_I " CRL Distribution Point[%d]\n" IDS_CRL_DIS_FULL_NAME " FullName:\n" IDS_CRL_RDN " IssuerRDN: (Not Implemented)\n" IDS_CRL_UNKNOWN " Unknown name choice: %d\n" IDS_REASON_FLAG " ReasonFlags: " IDS_REASON_UNUSED "UNUSED " IDS_CRL_ISSUER " ISSUER::\n" IDS_AUTH_KEY_ID " <AuthorityKeyId>\n" IDS_AUTH_CERT_ISSUER " AuthorityCertIssuer::\n" IDS_AUTH_CERT_ISSUER_SERIAL_NUMBER " AuthorityCertSerialNumber::" IDS_AUTH_KEY_ID2 " <AuthorityKeyId #2>\n" IDS_VALUE_STRING_S "ValueType: %d String: %s\n" IDS_ELN "\n" IDS_ISS_ALT2 " <Issuer AltName #2> \n" IDS_SEPERATOR "==============================================\n" IDS_NOT_AVAILABLE "Not Available" IDS_NONE_NOELN "None" IDS_TS_VERSION " Timestamp Version:: %d\n" IDS_TS_ISSUER " Timestamp server's certificate issuer::\n" IDS_TS_SERIAL_NUMBER " Timestamp server's certificate SerialNumber::\n" IDS_TS_AUTHATTR " Timestamp's authenticated attributes::\n" IDS_TS_UNAUTHATTR " Timestamp's unauthenticated attributes::\n" IDS_TIMESTMAP " Timestamp:: \n" IDS_SIGNING_TIME " Signing Time:: \n %s\n" IDS_HASH_ALGO "Hash Algorithm:: " IDS_HASH_ALGO_PARAM "HashAlgorithm.Parameters::\n" IDS_ENCRYPT_ALGO "Encrypt Algorithm:: " IDS_ENCRYPT_ALGO_PARAM "Encrypt Algorithm.Parameters::\n" IDS_SPC_SP_NAME "SpcSpAgencyInfo" IDS_SPC_FIN_NAME "SpcFinancialCriteria" IDS_SPC_MIN_NAME "SpcMinimalCriteria" IDS_NTSP_CERT_NAME "NetscapeCertType" IDS_NTSP_BASE_NAME "NetscapeBaseURL" IDS_NTSP_REV_NAME "NetscapeRevocationURL" IDS_NTSP_CA_REV_NAME "NetscapeCARevocationURL" IDS_NTSP_RENEW_NAME "NetscapeCertRenewalURL" IDS_NTSP_POL_NAME "NetscapeCAPolicyURL" IDS_NTSP_SSL_SERVER_NAME "NetscapeSSLServerName" IDS_NTSP_COMMENT "NetscapeComment" IDS_ERR_INIT_OID_SET "Error: Failed to initialize OID FunctionSet.\n" IDS_ERR_INSTALL_OID "Error: Failed to install OID Function.\n" IDS_ERR_REG_OID "Error: Failed to register OID information.\n" IDS_ERR_DELETE_SIGNED_FILE "Error: Need to specify a destination store if delete from a signed file.\n" IDS_OPTION_EKU "eku" IDS_OPTION_EKU_DESC " -eku <OID,OID> Comma separated enhanced key usage OIDs\n" IDS_OPTION_NAME "name" IDS_OPTION_NAME_DESC " -name <FriendlyName> Friendly Name for the certificates\n" IDS_OPTION_MULTI "m" IDS_OPTION_MULTI_DESC " -m Format the extensions in muliple lines\n" IDS_OPTION_TEST "~" IDS_ERR_SET_EKU "Error: Failed to set the enhanced key usage property.\n" IDS_ERR_DISPLAY_EKU "Error: -eku or -name has to be set with -add or -del option.\n" IDS_ERR_7_CTL "Error: -7 and -CTL can not be set at the same time. \n" IDS_ERR_7_CTL1 " CTL will be lost when the destination store is saved as PKCS #7\n" IDS_TOO_MANY_DES_STORE "Error: When -put is set, -s, -r, -y, -f cannot be set for the destination store\n" IDS_ERR_ALL_PUT "Error: -all and -put can not be set at the same time. Use -c ,-ctl, or -crl.\n" IDS_ERR_PUT_ITEM "Error: Has to specify either -c, or -crl, or -ctl\n" IDS_ERR_PUT_CERT "Error: Failed to put certificate\n" IDS_ERR_PUT_NO_CERT "Error: Failed to find a certificate to put.\n" IDS_ERR_PUT_CRL "Error: Failed to put CRL\n" IDS_ERR_PUT_CRL_FIND "Error: Failed to find a CRL to put.\n" IDS_ERR_PUT_CTL "Error: Failed to put CTL\n" IDS_ERR_PUT_CTL_FIND "Error: Failed to find a CTL to put.\n" IDS_ERR_SET_NAME "Error: Failed to set the friendly name property.\n" END #include <common.ver>
|