I don't know much about the .Cer file but can't you just read it using System.IO library?
Here is a sample:
/*--[using directives]-------------------------------------------------*/
using System.IO
/*--[ Function ]---------------------------------------*/
/*
Name : ReadTxtFile_ToLst
Description : Reads data line- for line from a text file and stores
it to a list buffer.
Access Modifier : public
Param : string txtFilePath
Retval : List<string>
*/
/*-----------------------------------------------------*/
public List<string> ReadTxtFile_ToLst(string txtFilePath)
{
List<string> returnValue = new List<string>();
FileInfo genericFileInfo = new FileInfo(txtFilePath);
StreamReader sr = genericFileInfo.OpenText();
string lineContents;
while (sr.EndOfStream != true)
{
lineContents = sr.ReadLine();
returnValue.Add(lineContents);
}
return returnValue;
}
Hope this is what you were looking for!
Rudolf, :)