x509: add the api needed to obtain entries by nid

Also includes a large list of nids (from openssl/object.h). Might be
transcoding errors on my part there.
It seems like there should be some way of getting the string out of this thing!