I can't answer about the legality, but I can tell you that you skipped a step. You need something to remove the protection first. The most common and easiest method is to use DVDfab HD Decrypter (which is free) to rip the movie to your HDD, and then Handbrake can take that folder and turn it into whatever type file you need.