Add bindings for pem (Refs #77) (Blocked on x509)

Needs #126 to be merged