From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Question collaborative editing - crdt.el, does it use SSL? Date: Mon, 2 Nov 2020 13:02:26 +0300 Message-ID: References: <20201020185114.GE6994@t400> <3AFE3D85-16AF-460E-B3E6-1EE80223C627@mit.edu> <7276559E-BA94-48B6-8AFA-4DEBE5B9645F@mit.edu> <37DBC356-FA1D-44DD-BEA3-AA2757C7162C@mit.edu> <0115F6C3-8172-44AF-9810-180EE7B2270A@mit.edu> <87h7q8qedh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39621"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: Qiantan Hong , Fermin , Caio Henrique , Ergus , Emacs developers , Karl Fogel , Stefan Monnier , Noam Postavsky , Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 02 11:07:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZWjw-000A0J-CK for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Nov 2020 11:07:04 +0100 Original-Received: from localhost ([::1]:55478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZWjv-0007kt-BL for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Nov 2020 05:07:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZWfZ-0001dj-Q8 for emacs-devel@gnu.org; Mon, 02 Nov 2020 05:02:33 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:54559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZWfX-00037N-Mw; Mon, 02 Nov 2020 05:02:33 -0500 Original-Received: from localhost ([::ffff:197.157.0.60]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0B40.000000005F9FD934.000016D3; Mon, 02 Nov 2020 10:02:28 +0000 Content-Disposition: inline In-Reply-To: <87h7q8qedh.fsf@gmail.com> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 01:07:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258625 Archived-At: * Robert Pluim [2020-11-02 12:48]: > Jean Louis writes: > > > * Qiantan Hong [2020-10-29 02:09]: > >> I know that make-network-process can make TLS connection, > >> however it seems that it only works when Emacs is behaving as > >> client. > > > > You tried with these? > > > > :plist PLIST -- Install PLIST as the new process’s initial plist. > > :tls-parameters LIST -- is a list that should be supplied if you’re > > opening a TLS connection. The first element is the TLS type (either > > ‘gnutls-x509pki’ or ‘gnutls-anon’), and the remaining elements should > > be a keyword list accepted by gnutls-boot (as returned by > > ‘gnutls-boot-parameters’). > > > > :server QLEN -- if QLEN is non-nil, create a server process for the > > specified FAMILY, SERVICE, and connection type (stream or datagram). > > If QLEN is an integer, it is used as the max. length of the server’s > > pending connection queue (also known as the backlog); the default > > queue length is 5. Default is to create a client process. > > emacs can function as a udp/tcp server, but where would it get the > certificate from to function as a TLS server? Every server for crdt.el could create self-signed certificate. I guess there are various tools for that, like libressl, openssl (deprecated) and there is certtool - GnuTLS certificate tool Reference: https://gnutls.org/manual/html_node/certtool-Invocation.html#certtool-Invocation