Sign MicroStation VBA Applications


How to verify, create, and apply a self-signed digital certificate for MicroStation VBA (.MVBA) files

  1. Create a Self-signed certificate

    1. Create using PowershellNew-SelfSignedCertificate, OR
    2. 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

  2. Verify Certificate Created Locally using certmgr.msc



  3. 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

  4. 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

  5. Export Certificate for MicroStation using Internet Options

    • ..\WorkSpace\Standards\spc\DeveloperSupport.cer

  6. If errors encountered, Generate a MicroStation digital signature diagnostics log to review and/or send to product support for review.

NOTES: