[CONC-421] GnuTLS crashes if using pem files with combined cert and key Created: 2019-06-24  Updated: 2019-12-04  Resolved: 2019-06-24

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.11, 3.1.2
Fix Version/s: 3.1.3

Type: Task Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

GnuTLS crashes if certificate and key are combined in a single pem file.

Solution: use

gnutls_certificate_x509_keyfile2()

api function in ma_tls_set_certs function.



 Comments   
Comment by Georg Richter [ 2019-06-24 ]

commit ff13dd446dcd6dd861026a8aa3cd23f3a9c759d3 (origin/3.0, 3.0)
Author: Georg Richter <georg@mariadb.com>
Date: Mon Jun 24 18:07:53 2019 +0200

CONC-421:

Fixed crash in case certificate and key are stored in the same file.
Instead of reading key and cert separately we now call gnutls api function
gnutls_certificate_x509_keyfile2() to load certificate and key.

Generated at Thu Feb 08 03:05:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.