During the Windows 10 installation process, when prompted for a product key, click "I don't have a product key" at the bottom of the screen. Step 2: Choose Windows 10 Pro from the list of editions.
This is the most common legal method for users who do not have a 25-character key.