From: Ben Sturmfels <ben@sturm.com.au>
To: emacs-devel@gnu.org
Subject: Default package-archives to HTTPS
Date: Mon, 07 Sep 2015 14:43:05 +1000 [thread overview]
Message-ID: <87twr696w6.fsf@sturm.com.au> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]
Hi Folks,
I've attached a small patch to switch the `package-archives' default,
http://elpa.gnu.org/packages/, to HTTPS. This helps to avoid
surveillance or tampering with downloaded packages.
Thanks to François Marier for the suggestion:
https://identi.ca/fmarier/note/XBKVu8OLT9KiUmqIj-a4Rg
This is my first patch to Emacs, so let me know if it needs any changes.
Regards,
Ben
--
Ben Sturmfels
Sturm
www.sturm.com.au
(03) 9024 2467
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: package-archive-default-https.patch --]
[-- Type: text/x-diff, Size: 1420 bytes --]
From 46ee3020703c951eeb975ff95fad3b1689c20b49 Mon Sep 17 00:00:00 2001
From: Ben Sturmfels <ben@sturm.com.au>
Date: Mon, 7 Sep 2015 14:27:35 +1000
Subject: [PATCH] Switch default package archive to HTTPS
* lisp/emacs-lisp/package.el (package-archives): Use HTTPS to access the
default archive, elpa.gnu.org/packages/.
Copyright-paperwork-exempt: yes
---
lisp/emacs-lisp/package.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 4d3678a..5579db6 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -204,14 +204,14 @@ If VERSION is nil, the package is not loaded (it is \"disabled\")."
:risky t
:version "24.1")
-(defcustom package-archives '(("gnu" . "http://elpa.gnu.org/packages/"))
+(defcustom package-archives '(("gnu" . "https://elpa.gnu.org/packages/"))
"An alist of archives from which to fetch.
The default value points to the GNU Emacs package repository.
Each element has the form (ID . LOCATION).
ID is an archive name, as a string.
LOCATION specifies the base location for the archive.
- If it starts with \"http:\", it is treated as a HTTP URL;
+ If it starts with \"http:\" or \"https:\", it is treated as a URL;
otherwise it should be an absolute directory name.
(Other types of URL are currently not supported.)
--
1.9.1
[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]
next reply other threads:[~2015-09-07 4:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 4:43 Ben Sturmfels [this message]
2015-09-07 23:00 ` Default package-archives to HTTPS Xue Fuqiao
2015-09-07 23:04 ` Ben Sturmfels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twr696w6.fsf@sturm.com.au \
--to=ben@sturm.com.au \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).