Source code of Windows XP (NT5)
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.

358 lines
10 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: certreq.rc
  8. //
  9. //--------------------------------------------------------------------------
  10. #include <windows.h>
  11. #include <ntverp.h>
  12. #include "clibres.h"
  13. #include "certlib.rc"
  14. // This stuff came from the MSDev generated spew
  15. //Microsoft Developer Studio generated resource script.
  16. //
  17. #include "resource.h"
  18. #define APSTUDIO_READONLY_SYMBOLS
  19. /////////////////////////////////////////////////////////////////////////////
  20. //
  21. // Generated from the TEXTINCLUDE 2 resource.
  22. //
  23. //#include "afxres.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. #undef APSTUDIO_READONLY_SYMBOLS
  26. /////////////////////////////////////////////////////////////////////////////
  27. // English (U.S.) resources
  28. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  29. #ifdef _WIN32
  30. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  31. #pragma code_page(1252)
  32. #endif //_WIN32
  33. /////////////////////////////////////////////////////////////////////////////
  34. //
  35. // Icon
  36. //
  37. // Icon with lowest ID value placed first to ensure application icon
  38. // remains consistent on all systems.
  39. IDI_APP ICON DISCARDABLE "csapp.ico"
  40. IDI_PRODUCT ICON DISCARDABLE "csprod.ico"
  41. /////////////////////////////////////////////////////////////////////////////
  42. //
  43. // Dialog
  44. //
  45. IDD_ENCODING DIALOG DISCARDABLE 0, 0, 225, 142
  46. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  47. CAPTION "Encode and Decode Options"
  48. FONT 8, "MS Shell Dlg"
  49. BEGIN
  50. DEFPUSHBUTTON "OK",IDOK,168,7,50,14
  51. PUSHBUTTON "Cancel",IDCANCEL,168,24,50,14
  52. LTEXT "Select whether you wish to submit a request for a certificate, or to encode or decode a file between base 64 text and binary formats.",
  53. IDC_STATIC,14,14,142,49
  54. GROUPBOX "Encode/Decode/Request Certificate",IDC_STATIC,14,70,198,58
  55. CONTROL "Request Certificate",IDC_NOBASE64RADIO,"Button",
  56. BS_AUTORADIOBUTTON | WS_GROUP,47,85,120,10
  57. CONTROL "Decode base 64 file to binary file",IDC_DECODERADIO,"Button",
  58. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,47,97,120,10
  59. CONTROL "Encode binary file to base 64 file",IDC_ENCODERADIO,"Button",
  60. BS_AUTORADIOBUTTON | WS_GROUP,47,109,120,10
  61. END
  62. /////////////////////////////////////////////////////////////////////////////
  63. // DESIGNINFO
  64. //
  65. #ifdef APSTUDIO_INVOKED
  66. GUIDELINES DESIGNINFO DISCARDABLE
  67. BEGIN
  68. IDD_ENCODING, DIALOG
  69. BEGIN
  70. LEFTMARGIN, 7
  71. RIGHTMARGIN, 218
  72. TOPMARGIN, 7
  73. BOTTOMMARGIN, 135
  74. END
  75. END
  76. #endif // APSTUDIO_INVOKED
  77. #ifdef APSTUDIO_INVOKED
  78. /////////////////////////////////////////////////////////////////////////////
  79. //
  80. // TEXTINCLUDE
  81. //
  82. 1 TEXTINCLUDE DISCARDABLE
  83. BEGIN
  84. "resource.h\0"
  85. END
  86. 2 TEXTINCLUDE DISCARDABLE
  87. BEGIN
  88. "#include ""afxres.h""\r\n"
  89. "\0"
  90. END
  91. 3 TEXTINCLUDE DISCARDABLE
  92. BEGIN
  93. "\r\n"
  94. "\0"
  95. END
  96. #endif // APSTUDIO_INVOKED
  97. #endif // English (U.S.) resources
  98. /////////////////////////////////////////////////////////////////////////////
  99. /////////////////////////////////////////////////////////////////////////////
  100. //
  101. // String Table
  102. //
  103. STRINGTABLE DISCARDABLE
  104. BEGIN
  105. // NOTE: IDS_ strings from here on must be < 64 wchars
  106. IDS_REQUEST_FILTER2 "All Files (*.*)|*.*||"
  107. IDS_REQUEST_OUTFILE_TITLE "Save As Outfile Name"
  108. IDS_REQUEST_CERT_ERROR "Certificate request Error."
  109. IDS_RESPONSE_FILE_FILTER "PKCS #7 (*.p7b)|*.p7b|X.509 Certificate (*.cer;*.crt)|*.cer;*.crt|Full Response (*.rsp)|*.rsp|All Files (*.*)|*.*||"
  110. IDS_RESPONSE_FILE_DEFEXT "p7b"
  111. IDS_REQUEST_OR_CERT_FILE_FILTER "Request (*.req; *.txt)|*.req;*.txt|X.509 Certificate (*.cer;*.crt)|*.cer;*.crt|All Files (*.*)|*.*||"
  112. IDS_INF_OPEN_TITLE "Open Inf File"
  113. IDS_INF_FILE_FILTER "Inf Files (*.inf)|*.inf|All Files (*.*)|*.*||"
  114. IDS_INF_FILE_DEFEXT "inf"
  115. IDS_APP_NAME "CertReqApp"
  116. IDS_WINDOW_NAME "CertReq Application"
  117. IDS_ERROR_NO_REQUESTID "Missing RequestId parameter"
  118. IDS_ERROR_STRCONVERSION "String conversion failed -- out of memory"
  119. IDS_DISPOSITION_INCOMPLETE "Incomplete"
  120. IDS_DISPOSITION_ERROR "Error"
  121. IDS_DISPOSITION_DENIED "Denied"
  122. IDS_DISPOSITION_ISSUED "Issued"
  123. IDS_DISPOSITION_ISSUED_OOB "Issued out of band"
  124. IDS_DISPOSITION_UNDER_SUBMISSION "Pending"
  125. IDS_DISPOSITION_REVOKED "Revoked"
  126. IDS_DISPOSITION_UNKNOWN "???"
  127. // NOTE: IDS_FORMATSTR strings from here on must be < 128 wchars
  128. IDS_FORMATSTR_CERTNOTISSUED "Certificate not issued (%ls) %ls"
  129. IDS_FORMATSTR_CERTPENDING "Certificate request is pending: %ls (%x)"
  130. IDS_CERTREQ_TITLE "Certificate Request Processor"
  131. IDS_FORMATSTR_DECODE_ERR "DecodeFile returned %ls"
  132. IDS_FORMATSTR_ERRCONFIG "ConfigGetConfig returned %ls"
  133. IDS_ERROR_NO_FILENAME "Missing filename parameter"
  134. IDS_FORMATSTR_CERTRETRIEVED "Certificate retrieved(%ls) %ls"
  135. IDS_NOMORE_CAS "No Certification Authorities available"
  136. IDS_GETERACERT_TITLE "Certificate List"
  137. IDS_GETERACERT_SUBTITLE "&List Enrollment Registration Agent certificates"
  138. IDS_GETRENEWALCERT_TITLE "Certificate List"
  139. IDS_GETRENEWALCERT_SUBTITLE "&Select certificate to be renewed"
  140. IDS_GETSIGNINGCERT_TITLE "Certificate List"
  141. IDS_GETSIGNINGCERT_SUBTITLE "&Select signing certificate"
  142. IDS_OVERWRITE_FILE "Do you wish to overwrite the following file?"
  143. IDS_FORMATSTR_REQUESTID "RequestId: %u"
  144. END
  145. STRINGTABLE DISCARDABLE
  146. BEGIN
  147. // Leading \ characters on each usage string line are replaced with blanks.
  148. IDS_USAGE_GENERAL
  149. "Usage:\n\
  150. \x20 CertReq -?\n\
  151. \x20 CertReq [-v] -?\n\
  152. \x20 CertReq [-Command] -?\n"
  153. IDS_USAGE_VERB_DEFAULT
  154. "\
  155. \x20 CertReq [-%1] [Options] [RequestFileIn [CertFileOut [CertChainFileOut [FullResponseFileOut]]]]\n\
  156. \x20 Submit a request to a Certification Authority.\n"
  157. IDS_USAGE_OPTIONS_DEFAULT
  158. "\
  159. \x20 -%2 AttributeString\n\
  160. \x20 -%3\n\
  161. \x20 -%5 ConfigString\n\
  162. \x20 -%6\n\
  163. \x20 -%9\n"
  164. IDS_USAGE_VERB_RETRIEVE
  165. "\
  166. \x20 CertReq -%1 [Options] RequestId [CertFileOut [CertChainFileOut [FullResponseFileOut]]]\n\
  167. \x20 Retrieve a response to a previous request from a Certification Authority.\n"
  168. IDS_USAGE_OPTIONS_RETRIEVE
  169. "\
  170. \x20 -%3\n\
  171. \x20 -%5 ConfigString\n\
  172. \x20 -%6\n\
  173. \x20 -%9\n"
  174. IDS_USAGE_VERB_POLICY
  175. "\
  176. \x20 CertReq -%1 [Options] [RequestFileIn [PolicyFileIn [RequestFileOut [PKCS10FileOut]]]]\n\
  177. \x20 Construct a cross certification or qualified subordination request\n\
  178. \x20 from an existing CA certificate or from an existing request.\n"
  179. IDS_USAGE_OPTIONS_POLICY
  180. "\
  181. \x20 -%2 AttributeString \n\
  182. \x20 -%3\n\
  183. \x20 -%4 CertId\n"
  184. IDS_USAGE_VERB_SIGN
  185. "\
  186. \x20 CertReq -%1 [Options] [RequestFileIn [RequestFileOut]]\n\
  187. \x20 Sign a cross certification or qualified subordination request.\n"
  188. IDS_USAGE_OPTIONS_SIGN
  189. "\
  190. \x20 -%3\n\
  191. \x20 -%4 CertId\n\
  192. \x20 -%6\n"
  193. IDS_USAGE_VERB_NEW
  194. "\
  195. \x20 CertReq -%1 [Options] [PolicyFileIn [RequestFileOut]]\n\
  196. \x20 Create a new request as directed by PolicyFileIn\n"
  197. IDS_USAGE_OPTIONS_NEW
  198. "\
  199. \x20 -%2 AttributeString
  200. \x20 -%3
  201. \x20 -%4 CertId\n"
  202. IDS_USAGE_VERB_ACCEPT
  203. "\
  204. \x20 CertReq -%1 [CertChainFileIn | FullResponseFileIn | CertFileIn]\n\
  205. \x20 Accept and install a response to a previous new request.\n"
  206. IDS_USAGE_OPTIONS_ACCEPT " "
  207. IDS_USAGE_OPTIONS_DESCRIPTION "Description:\n"
  208. IDS_USAGE_OPTION_ANY
  209. "%1\n\
  210. Force ICertRequest::Submit to determine encoding\n\
  211. type\n"
  212. IDS_USAGE_OPTION_ATTRIB
  213. "%2 AttributeString\n\
  214. Request attribute string\n"
  215. IDS_USAGE_OPTION_BINARY
  216. "%3\n\
  217. Output files in binary format instead of Base64-\n\
  218. encoded\n"
  219. IDS_USAGE_OPTION_CERT
  220. "%4 CertId\n\
  221. Specify signing certificate by common name,\n\
  222. serial number, or by sha-1 Key or cert hash\n"
  223. IDS_USAGE_OPTION_CONFIG
  224. "%5 ConfigString\n\
  225. Server\\CertificationAuthority config string\n\
  226. or use a single minus sign (-) as config string\n"
  227. IDS_USAGE_OPTION_CRL
  228. "%6\n\
  229. Include CRLs in CertChainFileOut or\n\
  230. RequestFileOut\n"
  231. IDS_USAGE_OPTION_F
  232. "%7\n\
  233. Force overwrite of existing files\n"
  234. IDS_USAGE_OPTION_Q
  235. "%8\n\
  236. Suppress all interactive dialogs\n"
  237. IDS_USAGE_OPTION_RPC
  238. "%9\n\
  239. Use RPC instead of DCOM server connection\n"
  240. IDS_USAGE_OPTION_VERBOSE
  241. "%10\n\
  242. Display Full Response Properties\n"
  243. IDS_USAGE_OPTION_QUESTION
  244. "%11\n\
  245. Display this usage message\n"
  246. IDS_USAGE_OPTION_V1
  247. "%12\n\
  248. Use version 1 interfaces\n"
  249. IDS_USAGE_OPTION_IDISPATCH
  250. "%13\n\
  251. Use IDispatch instead of COM native methods\n"
  252. IDS_USAGE_DESCRIPTION
  253. "\
  254. \x20 RequestFileIn - Base64-encoded or binary input file name:\n\
  255. \x20 PKCS10 certificate request,\n\
  256. \x20 CMS certificate request,\n\
  257. \x20 PKCS7 certificate renewal request,\n\
  258. \x20 X-509 certificate to be cross-certified, or\n\
  259. \x20 KeyGen tag format certificate request\n\
  260. \x20 RequestFileOut - Base64-encoded output file name\n\
  261. \x20 PKCS10FileOut - Base64-encoded PKCS10 output file name\n\
  262. \x20 CertFileOut - Base64-encoded X-509 file name\n\
  263. \x20 CertChainFileOut - Base64-encoded PKCS7 file name\n\
  264. \x20 FullResponseFileOut - Base64-encoded Full Response file name\n\
  265. \x20 ConfigString - Backslash separated Server Name and Certification\n\
  266. \x20 Authority Name: MachineDnsName\\CAName\n\
  267. \x20 AttributeString - Colon separated Name and Value string pairs\n\
  268. \x20 Each pair separated by a backslash and ""n""\n\
  269. \x20 Example: ""Name1: Value1\\n Name2: Value2""\n\
  270. \x20 PolicyFileIn - INF file containing a textual representation\n\
  271. \x20 of extensions used to qualify a request\n\
  272. \n"
  273. END
  274. #ifndef APSTUDIO_INVOKED
  275. /////////////////////////////////////////////////////////////////////////////
  276. //
  277. // Generated from the TEXTINCLUDE 3 resource.
  278. //
  279. /////////////////////////////////////////////////////////////////////////////
  280. #endif // not APSTUDIO_INVOKED
  281. // This material was in the original hand generated RC file
  282. #define VER_FILETYPE VFT_APP
  283. #define VER_FILESUBTYPE VFT2_UNKNOWN
  284. #define VER_FILEDESCRIPTION_STR "CertReq.exe"
  285. #define VER_INTERNALNAME_STR "CertReq.exe"
  286. #define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
  287. #include <common.ver>