Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running out of disk space on C:-drive. We see many (millions of) files in C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys

What are these files ?

Why are so many files created? How can we prevent this from happening? Can these files be deleted?

share|improve this question

migrated from stackoverflow.com Jan 18 '13 at 15:05

This question came from our site for professional and enthusiast programmers.

    
Do you use Comodo firewall? –  David Schwartz Jan 18 '13 at 15:14
1  
I'm not quite sure why you have so many. I have 7 files in that location. I don't know what the files are though, so I can't give an answer, just thought I'd let you know so many files may not be normal. –  Simkill Jan 18 '13 at 15:14
    
How large are they? Are they even relevant to your space issue? If not, leave them be. –  Oliver Salzburg Dec 29 '13 at 9:35

2 Answers 2

The files are related to SSL certificates issued through the Windows webserver, IIS.

A solution to delete these files is suggested here:

OK so I have found a way to clear down the folder: forfiles /d -90 /C "cmd /c del * /F /A:AS"

This looks for files older than 90 days and runs cmd - the del command with force option and files with attributes A and S (archive & system). I dont know why it wasn't working without the /A:AS on the end, maybe becasue they are system files.

Forfiles is a utility to perform batch operations on multiple files.

CAUTION: before you proceed to remove the files, make sure they are not crucial to any production-critical web sites !

share|improve this answer
    
Also it's always good to have a fresh full backup before mucking about by deleting stuff you might not know the full extend of. my 2c. –  Eliptical View Jan 28 at 11:54
    
if I understand forfiles correctly, your command should contain del @file instead of del *. With del * you do not need forfiles, because del * simply deletes everything... –  miroxlav Feb 22 at 22:20
    
still no answer WHY those files are appearing and how it can be stopped... I have millions, too and I would like to stop their creation. Unaffected systems have up to 100 files there. –  miroxlav Apr 17 at 23:48

I have found the answer by some analysis and testing. The problem is caused by SSL checking performed by ESET antivirus software.

Disable SSL scanning in ESET and these files will stop appearing in great quantities.

ESET SSL scanning is also connected to MITM attack warning in Chrome (also see links posted in given Q/A and comments).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.