As long as you get a federal permit..
That is illegal.
It is a violation of constitutional law - the constitution.
I think George Washington imposed a tax on distilling alcohol. Whiskey Rebellion or something like that. I would imagine that involved some sort of permit, too.