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.

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