certificate: Add API to retrieve version
Clients might be interested in retrieving which X.509 version is used for the certificate for several reasons, or just for showing it in the UI of an app.
Clients might be interested in retrieving which X.509 version is used for the certificate for several reasons, or just for showing it in the UI of an app.