If the uploaded file is a valid certificate you should have a look at the constructor or Import method in the X509Certificate2 class.
You'll see that you need to something like this:
var fileLength = file.PostedFile.ContentLength;
var certdata = new byte[fileLength];
file.FileContent.Read(certData, 0, fileLength);
var cert = new X509Certificate2(certData);
(code not verified but it, or something very similar, should work).