"ANSI bad file tag"....cannot read certificate
From: shahid (fake_at_microsoft.com)
Date: 11/23/04
- Previous message: anna: "patch for advapi32.dll ffor XP SP2"
- Next in thread: S R Tripathy: "Re: "ANSI bad file tag"....cannot read certificate"
- Reply: S R Tripathy: "Re: "ANSI bad file tag"....cannot read certificate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 23 Nov 2004 14:44:22 +0500
Hi all,
i am trying to read a certificate serialized on the hard disk. when i try to
read this certificate using ifstream, "ANIS bad file tag" message is
displayed.
i am using the following code:
ifstream certIn;
certIn.open("C:\\atemp.cer");
certIn.seekg(0,ios::end);
int nSize = certIn.tellg();
certIn.seekg(0,ios::beg);
char cert[nSize];
certIn.read(cert,nSize);
certIn.close();
Regards
- Previous message: anna: "patch for advapi32.dll ffor XP SP2"
- Next in thread: S R Tripathy: "Re: "ANSI bad file tag"....cannot read certificate"
- Reply: S R Tripathy: "Re: "ANSI bad file tag"....cannot read certificate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]