FIX: Cast to int before creating cert
Merge pull request #1816 from acasajus/fix-cast

[v6r10] FIX: Cast to int before creating cert