If your iMac is not older than El Capitan, you can't use that download to get El Capitan. Any Mac older than
September 30, 2015 but newer than July 21, 2011 will support that installer.
Older Macs will also support the installer, provided that Lion is installed first. These older Macs with [Device ID/Machine ID] (explains how to find it). Finding a working copy of Snow Leopard 10.6.3 retail for Macs older than March 15, 2010, or the original 10.6 installer disc can be a challenge for those older Macs, and upgrade to 10.6.8 combo to get the App Store to be able to install Lion is also a challenge:
MacBook (Late 2008 Aluminum, or Early 2009 or newer) [5,1 or 5,2]
MacBook Pro (Mid/Late 2007 or newer) [3,1]
MacBook Air (Late 2008 or newer) [2,1]
Mac mini (Early 2009 or newer) [3,1]
iMac (Mid 2007 or newer) [7,1]
Mac Pro (Early 2008 or newer) [3,1]
Xserve (Early 2009) [3,1]
command-option-shift-R boot on wired keyboard will install El Capitan on Macs released the year of El Capitan's being the current OS starting September 30, 2015 and ending September 19, 2016. You will want to connect such a Mac to Ethernet or Thunderbolt 2 to Ethernet adapter if Ethernet port does not exist.
There are some scenarios where the installer can't be verified because of the computer's date and time:
https://appuals.com/this-copy-of-the-install-os-x-el-capitan-application-cant-be-verified/