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.

111 lines
4.2 KiB

  1. <%@ CODEPAGE=65001 'UTF-8%>
  2. <%' certrspn.asp - (CERT)srv web - (R)e(S)ult: (P)e(N)ding
  3. ' Copyright (C) Microsoft Corporation, 1998 - 1999 %>
  4. <!-- #include FILE=certsbrt.inc -->
  5. <!-- #include FILE=certdat.inc -->
  6. <!-- #include FILE=certsrck.inc -->
  7. <% ' came from certfnsh.asp
  8. Set ICertRequest=Session("ICertRequest")
  9. sMode=Request.Form("Mode")
  10. 'Stop
  11. ' If this is a new request, add it to the user's cookie
  12. If 0<>InStr(sMode,"newreq") Then
  13. AddRequest
  14. End If
  15. %>
  16. <HTML>
  17. <Head>
  18. <Meta HTTP-Equiv="Content-Type" Content="text/html; charset=UTF-8">
  19. <Title>Microsoft Certificate Services</Title>
  20. </Head>
  21. <%If "IE"=sBrowser Then %>
  22. <Body BgColor=#FFFFFF Link=#0000FF VLink=#0000FF ALink=#0000FF OnLoad="postLoad();"><Font ID=locPageFont Face="Arial">
  23. <%Else 'browsers other than IE may not be able to load postLoad script so we skip it %>
  24. <Body BgColor=#FFFFFF Link=#0000FF VLink=#0000FF ALink=#0000FF"><Font ID=locPageFont Face="Arial">
  25. <%End If%>
  26. <Table Border=0 CellSpacing=0 CellPadding=4 Width=100% BgColor=#008080>
  27. <TR>
  28. <TD><Font Color=#FFFFFF><LocID ID=locMSCertSrv><Font Face="Arial" Size=-1><B><I>Microsoft</I></B> Certificate Services &nbsp;--&nbsp; <%=sServerDisplayName%> &nbsp;</Font></LocID></Font></TD>
  29. <TD ID=locHomeAlign Align=Right><A Href="/certsrv"><Font Color=#FFFFFF><LocID ID=locHomeLink><Font Face="Arial" Size=-1><B>Home</B></Font></LocID></Font></A></TD>
  30. </TR>
  31. </Table>
  32. <P ID=locPageTitle> <B> Certificate Pending </B>
  33. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  34. <%If 0<>InStr(sMode,"newreq") Then%>
  35. <P ID=locInfoNewReq> Your certificate request has been received. However, you must wait for an
  36. administrator to issue the certificate you requested. </P>
  37. <P ID=locInfoReqID>
  38. Your Request Id is <%=nReqID%>.
  39. </P>
  40. <%ElseIf "chkpnd"=sMode Then%>
  41. <P ID=locInfoChkPnd> Your certificate request is still pending. You must wait for an
  42. administrator to issue the certificate you requested. </P>
  43. <%End If%>
  44. <P ID=locInstructions> Please return to this web site in a day or two to retrieve your certificate.</P>
  45. <P ID=locTimeoutWarning><Font Size=-1><B>Note:</B> You must return with <B>this</B> web browser within <%=nPendingTimeoutDays%> days to retrieve your
  46. certificate</Font></P>
  47. <%If "chkpnd"=sMode Then%>
  48. <Form Action="certrmpn.asp" Method=Post>
  49. <Input Type=Hidden Name=Action Value="rmpn">
  50. <Input Type=Hidden Name=ReqID Value="<%=Server.HTMLEncode(Request.Form("ReqID"))%>">
  51. <P><Input ID=locBtnRemove Type=Submit Value="Remove"> - Remove this request from your list of pending requests.
  52. </Form>
  53. <%End If%>
  54. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  55. <!-- White HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#FFFFFF><Img Src="certspc.gif" Alt="" Height=5 Width=1></TD></TR></Table>
  56. </Font>
  57. <!-- ############################################################ -->
  58. <!-- End of standard text. Scripts follow -->
  59. <%If "IE"=sBrowser Then %>
  60. <Script Language="VBScript">
  61. Sub postLoad
  62. On Error Resume Next
  63. <%If 0<>InStr(sMode,"newreq") Then%>
  64. 'set pending info
  65. Dim n
  66. Dim sServerConfig
  67. Dim nReqId
  68. Dim sCADNS
  69. Dim sCAName
  70. Dim sThumbPrint
  71. Dim objXEnroll
  72. Dim sFriendlyName
  73. sThumbPrint="<%= Server.HTMLEncode(Request.Form("ThumbPrint")) %>"
  74. If ""=sThumbPrint Then
  75. Exit Sub
  76. End If
  77. Set objXEnroll = CreateObject("CEnroll.CEnroll.1")
  78. sServerConfig="<%=sServerConfig%>"
  79. nReqId = <%=nReqId%>
  80. n = InStr(sServerConfig, "\")
  81. sCADNS=Left(sServerConfig, n-1)
  82. sCAName=Mid(sServerConfig, n+1)
  83. sFriendlyName=""
  84. 'sFriendlyName="testName"
  85. 'Alert "requestId=" & nReqId & " CADNS=" & sCADNS & " CAName=" & sCAName & " ThumbPrint=" & sThumbPrint & " FriendlyName=" & sFriendlyName
  86. objXEnroll.ThumbPrint=sThumbPrint
  87. objXEnroll.setPendingRequestInfo nReqId, sCADNS, sCAName, sFriendlyName
  88. Set objXEnroll=Nothing
  89. <%End If%>
  90. End Sub
  91. </Script>
  92. <%End If 'only support IE because other browsers may not load above script%>
  93. </Body>
  94. </HTML>
  95. <%Session.Abandon()%>