Skip to content

Instantly share code, notes, and snippets.

@muink
Last active December 6, 2019 10:59
Show Gist options
  • Save muink/6cec2cfd0740181f989a7dfa5813e3ce to your computer and use it in GitHub Desktop.
Save muink/6cec2cfd0740181f989a7dfa5813e3ce to your computer and use it in GitHub Desktop.
Manual Certs

List

RevokeManual.bat

@echo off
:start
echo.[1]CodeSigning   [2]Organization   [3]Other&echo.
set /p type=输入证书类型: 
if %type% == 1 (set type=CodeSigning) else (if %type% == 2 (set type=Organization) else (if %type% == 3 (set type=..\..\Shared\Certificates) else (goto :start)))
set /p cc=输入证书序列号: 
.\Tools\SoftCertPolicyAppender\Binary\SoftCertPolicyAppender.exe --set-force --interval 1000 .\Certificates\%type%\%cc%.crt
goto :start

RestoreManual.bat

@echo off
:start
echo.[1]CodeSigning   [2]Organization   [3]Other&echo.
set /p type=输入证书类型: 
if %type% == 1 (set type=CodeSigning) else (if %type% == 2 (set type=Organization) else (if %type% == 3 (set type=..\..\Shared\Certificates) else (goto :start)))
set /p cc=输入证书序列号: 
.\Tools\SoftCertPolicyAppender\Binary\SoftCertPolicyAppender.exe --remove --unset-force --interval 1000 .\Certificates\%type%\%cc%.crt
goto :start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment