It is probably not illegal to sell your company's products online unless you are infringing on a patent or trademark or doing something fraudulent.  Even if you are not doing anything illegal, you may wind up getting fired if your boss finds out.  More detail about what you are selling and why would be necessary to more completely answer your question.