The node you are looking for is at
gnutls_x509_privkey_export2_pkcs8
.