How to verify, create, and apply a self-signed digital certificate for MicroStation VBA (.MVBA) files
- Create a Self-signed certificate
- Create using Powershell: New-SelfSignedCertificate, OR
- Create using Microsoft MakeCert.exe
- Download or Install Microsoft MakeCert.exe
- Create a Self-signed Certificate using MakeCert.exe
e.g. makecert -r -pe -n "CN=Bentley Developer Support" -sky exchange -ss MY
- Verify Certificate Created Locally using certmgr.msc

- Sign a MSVBA file using MVBASign.exe to load for: MS_SECURITY_LEVEL=MEDIUM
- ..\bin\mvbasign.exe --iN -cn "Bentley Developer Support" C:\macros\sample.mvba
- Confirm digital signature on file using CheckSignature.exe
- checksignature.exe --lx C:\macros\sample.mvba
Microstation Signature Checking Utility 08.11.09
C:\macros\sample.mvba : ERROR no signatures found
- Export Certificate for MicroStation using Internet Options
- ..\WorkSpace\Standards\spc\DeveloperSupport.cer
- If errors encountered, Generate a MicroStation digital signature diagnostics log to review and/or send to product support for review.
NOTES:
- MicroStation requires .cer files to used and available through MS_SECURITY_SPC
- Microsoft VBA Tools > Digital Signatures…; is not required and is not a substitute for a .cer file