Your approach is quite correct and You can obtain the desired result applying the following theorem...

Weierstrass factorization theorem - Wikipedia, the free encyclopedia

Starting from the identity...

(1)

... and remembering that...

(2)

... setting in (2) and inserting it in (1) You obtain...

(3)

Using (3) You should have no difficulties to resolve the second part of the problem...

Kind regards