[glib-networking: 128/129] Add back CA certificate configuration
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking: 128/129] Add back CA certificate configuration
- Date: Sat, 2 Feb 2019 22:54:09 +0000 (UTC)
commit c3531c63bd5ca1359a0175c2b72e1f4cea1c1b76
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Mon Sep 10 15:52:17 2018 +0200
Add back CA certificate configuration
We should follow the path of gnutls and remove this in the future.
detect_certificates.py | 16 ++++++++++++++++
meson_options.txt | 1 +
2 files changed, 17 insertions(+)
---
diff --git a/detect_certificates.py b/detect_certificates.py
new file mode 100755
index 0000000..1482554
--- /dev/null
+++ b/detect_certificates.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+
+import os
+
+certificates = [
+ '/etc/pki/tls/certs/ca-bundle.crt',
+ '/etc/ssl/certs/ca-certificates.crt',
+ '/etc/ssl/ca-bundle.pem',
+]
+
+for cert in certificates:
+ if os.path.isfile(cert):
+ print(cert)
+ exit(0)
+
+exit(1)
diff --git a/meson_options.txt b/meson_options.txt
index 3a525dd..3518758 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,3 +4,4 @@ option('libproxy', type: 'feature', value: 'auto', description: 'support for lib
option('gnome_proxy', type: 'feature', value: 'auto', description: 'support for GNOME desktop proxy
configuration')
option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
option('static_modules', type: 'boolean', value: false, description: 'build static modules')
+option('ca_certificates', type: 'string', value: '', description: 'path to system Certificate Authority list
for OpenSSL')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]