Unable to import the PFX file.

"Paulo Ruivo" <[email protected]> Thu, 28 Aug 2003 15:53:46 +0100
Newsgroups gmane.comp.sourceid.sso.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C36D7C.9061D9D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit


  Hi,

  I'm using the SourceID.NET, and I have put service providers in different
machines,

  They all have the windows 2000 professional, and I have installed the same
pre-requisites in all of then. But in one of then I'm getting a error while
reading the key.pfx file: Unable to import the PFX file!

  The error message is:



  Server Error in '/auth' Application.

----------------------------------------------------------------------------
--

  Unable to import the PFX file!
  Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

  Exception Details:
Org.Mentalis.Security.Certificates.CertificateException: Unable to import
the PFX file!

  Source Error:

        An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.



  Stack Trace:

 [CertificateException: Unable to import the PFX file!]
Org.Mentalis.Security.Certificates.CertificateStore.CreateFromPfxFile(Byte[]
file, String password, Boolean exportable) +352
Org.Mentalis.Security.Certificates.Certificate.CreateFromPfxFile(String
file, String password) +20
SourceId.XmlUtils.GetCrypto(HttpApplicationState app) in
d:\sso\sourceid\xmlutils.cs:98
SourceId.HttpHandlers.Manager.Init(HttpApplication context) in
D:\sso\SourceId\HttpHandlers\Manager.cs:182
System.Web.HttpApplication.InitModules() +100
System.Web.HttpApplication.InitInternal(HttpContext context,
HttpApplicationState state, MethodInfo[] handlers) +1295
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context) +392
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +256
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414




----------------------------------------------------------------------------
--

  Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573









  It maybe a permissions error but I follow the instructions in the readme
file.

  Thank you,

  Paulo Ruivo

------=_NextPart_000_0000_01C36D7C.9061D9D0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:[email protected]" =
rel=3DFile-List><o:SmartTagType=20
name=3D"time"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"date"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@font-face {
	font-family: Verdana;
}
@font-face {
	font-family: Lucida Console;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; =
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
H2 {
	FONT-WEIGHT: normal; FONT-SIZE: 14pt; MARGIN-LEFT: 0in; COLOR: maroon; =
MARGIN-RIGHT: 0in; FONT-FAMILY: Verdana; mso-pagination: widow-orphan; =
mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; =
mso-outline-level: 2
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
PRE {
	FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Lucida Console"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"; mso-bidi-font-family: "Courier New"
}
SPAN.EmailStyle18 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-bidi-font-family: Arial; =
mso-style-type: personal; mso-style-noshow: yes; mso-ansi-font-size: =
10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial
}
SPAN.EmailStyle19 {
	COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-family: Arial; =
mso-style-type: personal-reply; mso-style-noshow: yes; =
mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; =
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial
}
SPAN.GramE {
	mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple =
link=3Dblue>
<DIV><SPAN class=3D966133114-28082003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DArial=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">Hi, <o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">I&#8217;m using the SourceID.NET, =
and I have put=20
  service providers in different machines, <o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">They all have the windows 2000 =
professional,=20
  and I have installed the same pre-requisites in all of then. But in =
one of=20
  then I&#8217;m getting a error while reading the key.pfx file: =
<I>Unable to import=20
  the PFX file!<o:p></o:p></I></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">The error message =
is:<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">&nbsp;<o:p></o:p></SPAN></P>
  <H1 style=3D"MARGIN: auto 0cm"><FONT size=3D5><FONT =
color=3D#ff0000><FONT=20
  face=3DVerdana>Server Error in '/auth' Application.=20
  <o:p></o:p></FONT></FONT></FONT></H1>
  <H1 style=3D"MARGIN: auto 0cm; TEXT-ALIGN: center" =
align=3Dcenter><FONT=20
  face=3DVerdana color=3D#ff0000 size=3D5>
  <HR align=3Dcenter width=3D"100%" color=3Dsilver noShade SIZE=3D1>
  </FONT></H1>
  <H2 style=3D"MARGIN: auto 0cm"><I>Unable to import the PFX file!</I>=20
  <o:p></o:p></H2>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 12pt"><B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-bidi-font-family: Arial; mso-ansi-language: EN-GB">Description:=20
  </SPAN></B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB">An=20
  unhandled exception occurred during the execution of the current web =
request.=20
  Please review the stack trace for more information about the error and =
where=20
  it originated in the code. <BR><BR></SPAN><B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-bidi-font-family: Arial; mso-ansi-language: EN-GB">Exception=20
  Details: </SPAN></B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: =
EN-GB">Org.Mentalis.Security.Certificates.CertificateException:=20
  Unable to import the PFX file!<BR><BR></SPAN><B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-bidi-font-family: Arial; mso-ansi-language: EN-GB">Source=20
  Error:</SPAN></B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB">=20
  <o:p></o:p></SPAN></P>
  <TABLE style=3D"BACKGROUND: #ffffcc; WIDTH: 100%; mso-cellspacing: =
1.5pt"=20
  cellPadding=3D0 width=3D"100%" bgColor=3D#ffffcc border=3D0>
    <TBODY>
    <TR>
      <TD=20
      style=3D"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0.75pt; BORDER-TOP: =
#d4d0c8; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: =
#d4d0c8; PADDING-TOP: 0.75pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: =
transparent">
        <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><CODE><SPAN=20
        style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial =
Unicode MS'; mso-ansi-language: EN-GB">An=20
        unhandled exception was generated during the execution of the =
current=20
        web request. Information regarding the origin and location of =
the=20
        exception can be identified using the exception stack trace=20
        below.</SPAN></CODE><SPAN=20
        style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-ansi-language: EN-GB">=20
        </SPAN><SPAN=20
        style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-fareast-font-family: 'Arial Unicode MS'; mso-bidi-font-family: =
'Arial Unicode MS'; mso-ansi-language: =
EN-GB"><o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 12pt"><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB"><BR></SPAN><B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-bidi-font-family: Arial; mso-ansi-language: EN-GB">Stack=20
  Trace:</SPAN></B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB">=20
  <o:p></o:p></SPAN></P>
  <TABLE style=3D"BACKGROUND: #ffffcc; WIDTH: 100%; mso-cellspacing: =
1.5pt"=20
  cellPadding=3D0 width=3D"100%" bgColor=3D#ffffcc border=3D0>
    <TBODY>
    <TR>
      <TD=20
      style=3D"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0.75pt; BORDER-TOP: =
#d4d0c8; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: =
#d4d0c8; PADDING-TOP: 0.75pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: =
transparent"><PRE><SPAN style=3D"FONT-SIZE: 9pt; COLOR: =
black">&nbsp;<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt; =
COLOR: black">[CertificateException: Unable to import the PFX =
file!]<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt; COLOR: =
black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>Org.Mentalis.Security.Certificates.CertificateStore.CreateFromPfxF=
ile(Byte[] file, String password, Boolean exportable) =
+352<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt; COLOR: =
black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>Org.Mentalis.Security.Certificates.Certificate.CreateFromPfxFile(S=
tring file, String password) +20<o:p></o:p></SPAN></PRE><PRE><SPAN =
style=3D"FONT-SIZE: 9pt; COLOR: black"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp; =
</SPAN>SourceId.XmlUtils.GetCrypto(HttpApplicationState app) in =
d:\sso\sourceid\xmlutils.cs:98<o:p></o:p></SPAN></PRE><PRE><SPAN =
style=3D"FONT-SIZE: 9pt; COLOR: black"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp; =
</SPAN>SourceId.HttpHandlers.Manager.Init(HttpApplication context) in =
D:\sso\SourceId\HttpHandlers\Manager.cs:182<o:p></o:p></SPAN></PRE><PRE><=
SPAN style=3D"FONT-SIZE: 9pt; COLOR: black"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp; </SPAN>System.Web.HttpApplication.InitModules() =
+100<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt; COLOR: =
black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>System.Web.HttpApplication.InitInternal(HttpContext context, =
HttpApplicationState state, MethodInfo[] handlers) =
+1295<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt; COLOR: =
black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>System.Web.HttpApplicationFactory.GetNormalApplicationInstance(Htt=
pContext context) +392<o:p></o:p></SPAN></PRE><PRE><SPAN =
style=3D"FONT-SIZE: 9pt; COLOR: black"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp; =
</SPAN>System.Web.HttpApplicationFactory.GetApplicationInstance(HttpConte=
xt context) +256<o:p></o:p></SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: =
9pt; COLOR: black"><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest =
wr) +414<o:p></o:p></SPAN></PRE></TD></TR></TBODY></TABLE>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB">&nbsp;<o:p></o:p></SPAN></P>
  <DIV class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: =
center"=20
  align=3Dcenter><SPAN lang=3DPT=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial">
  <HR align=3Dcenter width=3D"100%" color=3Dsilver noShade SIZE=3D1>
  </SPAN></DIV>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana; =
mso-bidi-font-family: Arial; mso-ansi-language: EN-GB">Version=20
  Information:</SPAN></B><SPAN=20
  style=3D"FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Arial; =
mso-ansi-language: EN-GB">&nbsp;Microsoft=20
  .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 =
</SPAN><SPAN=20
  style=3D"mso-ansi-language: EN-GB"><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;</SPAN><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">&nbsp;<o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB"><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB"><SPAN=20
  style=3D"mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB">&nbsp;<o:p></o:p></SPAN></P><SPAN=20
  style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; =
mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; =
mso-fareast-language: EN-US; mso-bidi-language: AR-SA">It=20
  maybe a permissions error but I follow the instructions in the readme=20
  file.<BR><SPAN class=3D966133114-28082003><FONT face=3DArial =
color=3D#0000ff size=3D2>
  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN=20
  style=3D"mso-ansi-language: EN-GB"><FONT color=3D#000000>Thank=20
  you,<o:p></o:p></FONT></SPAN></P><SPAN=20
  style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; =
mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; =
mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><FONT=20
  color=3D#000000>Paulo=20
  =
Ruivo</FONT></SPAN>&nbsp;</FONT></SPAN></SPAN></o:p></SPAN></FONT></DIV><=
/BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0000_01C36D7C.9061D9D0--