Solution:
Go to a DOS prompt and type in the following OR go to Start -> Run and then copy and paste each line below hitting
regsvr32 Gpkcsp.dll /s
regsvr32 Slbcsp.dll /s
regsvr32 Sccbase.dll /s
regsvr32 Softpub.dll /s
regsvr32 Wintrust.dll /s
regsvr32 Initpki.dll /s
regsvr32 Rsaenh.dll /s
regsvr32 Mssip32.dll /s
regsvr32 Cryptdlg.dll /s
If for some reason you still can't fix this error I highly recommend you to run Registry Easy which is known as best registry repair tool.