In order to fix this problem, you can try several things. Go to Start -> Control Panel -> Administrative Tools -> double-click Services -> right-click Cryptographic Services -> click Properties -> choose Automatic for Startup type, and then click Start.
If this doesn't work, update your DirectX to the latest version. Also, you need to update your video card driver to the latest version then uninstall and install the COD game again.