X509 Generator sample

Forcing static linking for lib wrapped as in other case doc tests
fail to locate the static library
Could you add some hidden code at the bottom of this example to delete `doc_cert.pem`? If you prefix a line with a `# `, (note the space) it won't show up in the docs, but will still be executed.