From: David Uhden Collado Subject: faq4.html: SHA-256 verification and USB flashing on Windows To: tech@openbsd.org Date: Fri, 24 Oct 2025 22:14:33 +0200 Hello everyone, I have attached to this email is a patch that updates faq4.html. It adds native Windows steps for calculating and comparing SHA-256 using the Command Prompt and PowerShell. It also adds a brief guide for creating an installation medium with a USB flash drive using Rufus. Best regards, David. Index: faq/faq4.html =================================================================== RCS file: /cvs/www/faq/faq4.html,v diff -u -r1.562 faq4.html --- faq/faq4.html 22 Oct 2025 01:27:44 -0000 1.562 +++ faq/faq4.html 24 Oct 2025 19:42:41 -0000 @@ -285,12 +285,47 @@ Directory does not contain SHA256.sig. Continue without verification? [no] +

This is because it would make no sense for the installer to verify them. If someone were to make a rogue installation image, they could certainly change the installer to say the files were legitimate. If the image's signature has been verified beforehand, it is safe to answer "yes" at that prompt. +

+Windows includes built-in tools to compute SHA-256 hashes. +These steps let you confirm your downloaded files match +the official checksum: + +

    +
  1. Open a Command Prompt or PowerShell in the folder containing + the installation files. +
  2. Compute the hash of the image with one of the following: +
      +
    • Command Prompt: +
      +          CertUtil -hashfile install*.img SHA256
      +        
      +
    • PowerShell: +
      +          Get-FileHash install*.img -Algorithm SHA256
      +        
      +
    +
  3. Display the expected hash for that file from the + SHA256 file and compare. +
      +
    • Command Prompt: +
      +          findstr /I "install*.img" SHA256
      +        
      +
    • PowerShell: +
      +          Select-String -Path SHA256 -Pattern 'install*.img'
      +        
      +
    +
+ +

Creating Install Media

Flash Drives

@@ -310,9 +345,25 @@

Details of this will vary on other platforms. -If you're using a different OS, be sure to select the appropriate device -name: /dev/sdX on Linux or /dev/rdiskX on macOS -for example. +If you're using a different Unix-like OS, be sure to select the +appropriate device name: /dev/sdX on Linux or +/dev/rdiskX on macOS for example. + +

+If you are on Windows, you can create the USB installer with the +Rufus utility: + +

    +
  1. Download the latest Rufus binary + and run it. Installation is not required. +
  2. In Rufus, select your USB device under Device. + Click SELECT and choose the install*.img + file you downloaded. +
  3. Leave the other options at their defaults. + When prompted for a write mode, choose DD image mode. +
  4. Click START and wait until the status bar + says READY. +

CD-ROMs

@@ -659,8 +710,8 @@ file openbsd.pbr to your Windows system partition.

-Once OpenBSD's PBR is copied to the Windows system partition, you need a shell -with administrative privileges to run the following commands: +Once OpenBSD's PBR is copied to the Windows system partition, you need a +Command Prompt with administrative privileges to run the following commands:

 C:\Windows\system32> bcdedit /create /d "OpenBSD/i386" /application bootsector