Clean Install of Mac OS X El Capitan failing

I bought a damaged not working 2008 Macbook Pro from Ebay. I have replaced the battery, added a new SSD drive and upgraded the Ram. I bought a bootable usb drive containing El Capitan and it is recognised by the machine, it begins installing the OS, it starts of with 13 minutes to go, then progresses until there is one second left, then the machine shuts down. When i restart I get the message "This copy of the install OS X El Capitan application can't be verifie. It may have been corrupted or tampered with during downloading"
Have you checked the time and date on your computer?

If the date is incorrect, the installation will fail the validation.
I'm not sure if it applies to OS X El Capitan, but thumb drives for several previous versions needed to be recreated because the security certificate expired.
Just went thru this exact same issue. This link should get you across the goal line.

http://www.davidhill.co/2016/06/os-x-could-not-be-installed-on-your-computer-el-capitan/

Original thread: https://forums.imore.com/threads/clean-install-of-mac-os-x-el-capitan-failing.429259/