Add Unsigned Certificate
Install a Self-Signed or Untrusted Certificate
Method 1: MMC (Microsoft Management Console)
- Press
Win+R, typemmc, press Enter - File > Add/Remove Snap-in
- Select Certificates, click Add
- Choose Computer account > Local computer
- Expand Certificates (Local Computer)
- Right-click Trusted Root Certification Authorities > All Tasks > Import
- Follow the wizard to import the
.ceror.crtfile
Method 2: Command Line
# Install to Trusted Root CA store (machine-wide)
certutil -addstore -f "ROOT" certificate.cer
# Verify installation
certutil -store ROOT | findstr "YourCertName"
# Install to Personal store
certutil -addstore -f "MY" certificate.cer
Method 3: PowerShell
# Import to Trusted Root CA
Import-Certificate -FilePath "C:\path\to\cert.cer" `
-CertStoreLocation Cert:\LocalMachine\Root
# Import to Personal store
Import-Certificate -FilePath "C:\path\to\cert.cer" `
-CertStoreLocation Cert:\CurrentUser\My
Clear IE/Edge SSL State
After adding the certificate, clear the SSL state:
- Internet Options > Content tab
- Click Clear SSL state
- Restart browser
Or via command line:
certutil -URLCache * delete
For Java Applications
keytool -importcert -alias "mycert" \
-file certificate.cer \
-keystore "%JAVA_HOME%\lib\security\cacerts" \
-storepass changeit