How import CRL in .NET

0 votes
asked Mar 6 by David BS (420 points)

Hi team!

After create my CRL file I can import it to the right STORE just right-clicking on it and selecting "Import the Revocation List".

Is there a way to import it by code with no obligation of defining a folder within the STORE? I mean, act like the above and let the Windows to define the best place to put the CRL?

Thanks a lot!

1 Answer

0 votes
answered Mar 8 by Lukas Pokorny (120,490 points)
selected Mar 8 by David BS
 
Best answer

Hi, this functionality is not provided by Rebex libraries or .NET Framework. However, it looks like it's possible with a some P/Invokes. Please refer to Programmatically install Certificate Revocation List (CRL) on StackOverflow.

Another option is to use the certtool command line utility.

commented Mar 8 by David BS (420 points)
Thank you very much Lukas.
...