this fixes an error related to duration parameter when creating a new certificate. 

When that duration is a String it needs to be converted to an integer first.