Not able to install macOS in a new hard drive
I'm trying to replace my old hard drive with a SSD in a Macbook Pro early 2011.
I have created a bootable usb with Sierra, and it seems to work fine if I start the computer with the old hard drive in place. But when I replace the hard drive with the new SSD one, it says "This copy of the Install macOS Sierra application is damaged, and can't be used to install macOS"
I have erased the new hard drive and formatted it to OS X Extended (Journaled)
MacBook Pro