Convenience pem writer