Ios cert validation

This PR adds the same feature as #79 to iOS, as well as exposing it in the PCL facade.