Require key and cert when searching for client cert
* lisp/net/network-stream.el (network-stream-certificate): Require :key and :cert when searching auth sources for a client certificate. (Bug#78189)
This commit is contained in:
committed by
Robert Pluim
parent
b91efd401d
commit
d11570d80e
@@ -249,7 +249,8 @@ gnutls-boot (as returned by `gnutls-boot-parameters')."
|
||||
(ignore-errors
|
||||
(car (auth-source-search :max 1
|
||||
:host host
|
||||
:port (format "%s" service)))))
|
||||
:port (format "%s" service)
|
||||
:require '(:key :cert)))))
|
||||
(key (plist-get auth-info :key))
|
||||
(cert (plist-get auth-info :cert)))
|
||||
(and key cert (file-readable-p key) (file-readable-p cert)
|
||||
|
||||
Reference in New Issue
Block a user