1、rundll32.exe
命令:
rundll32.exe cryptext.dll,CryptExtAddCER D:\server.cer
特点:该方式是通过windows自带的安装向导(cryptext.dll)进行安装。
还有一些指定:
RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenCAT %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddCER %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenCER %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenSTR %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddCRL %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenCRL %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddP7R %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenP7R %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenPKCS7 %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddPFX %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddSPC %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenPKCS7 %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtAddCTL %1 RUNDLL32.EXE CRYPTEXT.DLL,CryptExtOpenCTL %1
2、certmgr.exe
certmgr.exe /c /add D:\server.cer /s root
特点:只会弹出一个确定的警告。同支付宝的的相同。
示例:
Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrator>d: D:\>certmgr.exe /c /add D:\server.cer /s root CertMgr Succeeded D:\>certmgr.exe /c /add D:\server.cer /s root Error: Failed to save to the destination store CertMgr Failed D:\>