gnutls_certificate_send_x509_rdn_sequence - Linux


Overview

gnutls_certificate_send_x509_rdn_sequence sends an X.509 Relative Distinguished Name (RDN) sequence to the peer. An RDN sequence is a sequence of Relative Distinguished Names (RDNs) which is typically used to identify a subject or issuer in a certificate.

Syntax

gnutls_certificate_send_x509_rdn_sequence(gnutls_certificate_credentials_t cred, x509_dn_t cert_dn)

| Argument | Description |
|—|—|
| cred | A gnutls_certificate_credentials_t representing the issuer certificate. |
| cert_dn | An x509_dn_t representing the certificate DN (Distinguished Name). |

Options/Flags

None

Examples

Send the common name (CN) RDN to the peer:

gnutls_certificate_send_x509_rdn_sequence(cred, x509_dn_get_by_type(cert_dn, X509_DN_CN));

Common Issues

If the certificate is not explicitly trusted by the peer, the handshake may fail.

Integration

This command can be used with other GnuTLS commands to create and manage certificates.

Related Commands

  • gnutls_certificate_send_x509_dn
  • gnutls_x509_rdn_sequence_init
  • gnutls_x509_dn_add_rdn