ソースを参照

Heartbleed vulnerability mitigation

Bob Mottram 11 年 前
コミット
a47e4db354
共有2 個のファイルを変更した50 個の追加2 個の削除を含む
  1. 2
    0
      README.md
  2. 48
    2
      beaglebone.txt

+ 2
- 0
README.md ファイルの表示

1
 <img src="https://github.com/fuzzgun/freedombone/blob/master/images/logo120.png?raw=true"/>
1
 <img src="https://github.com/fuzzgun/freedombone/blob/master/images/logo120.png?raw=true"/>
2
 
2
 
3
+**Note: for information on fixing the "heartbleed" vulnerability see the section called "Regenerating SSL certificates"**
4
+
3
 FreedomBone is a personal home communications server based upon the BeagleBone Black hardware. It's small and cheap and will allow you to use email, have your own web site and do social networking in a federated way without needing to rely upon any intermediary companies other than your ISP.
5
 FreedomBone is a personal home communications server based upon the BeagleBone Black hardware. It's small and cheap and will allow you to use email, have your own web site and do social networking in a federated way without needing to rely upon any intermediary companies other than your ISP.
4
 
6
 
5
 beaglebone.txt is in Emacs org-mode format.
7
 beaglebone.txt is in Emacs org-mode format.

+ 48
- 2
beaglebone.txt ファイルの表示

478
 Install some dependencies.
478
 Install some dependencies.
479
 
479
 
480
 #+BEGIN_SRC: bash
480
 #+BEGIN_SRC: bash
481
-apt-get install gnupg build-essential libgcrypt11-dev
481
+apt-get install gnupg build-essential libgcrypt11-dev texinfo
482
 #+END_SRC
482
 #+END_SRC
483
 
483
 
484
 Verify it.
484
 Verify it.
508
 cd hashlet-1.0.0
508
 cd hashlet-1.0.0
509
 patch -p1 < ../hashlet-1.0.0.patch
509
 patch -p1 < ../hashlet-1.0.0.patch
510
 chmod o+rw /dev/i2c*
510
 chmod o+rw /dev/i2c*
511
+./autogen.sh
511
 ./configure
512
 ./configure
512
 make
513
 make
513
 make check
514
 make check
544
 
545
 
545
 while :
546
 while :
546
 do
547
 do
547
-hashlet --bus=/dev/i2c-2 random > /dev/hashletrng # 32 bytes at a time...
548
+hashlet --bus=/dev/i2c-2 --Bytes 32 random-bytes > /dev/hashletrng
548
 done
549
 done
549
 #+END_SRC
550
 #+END_SRC
550
 
551
 
6268
 apt-get clean
6269
 apt-get clean
6269
 updatedb
6270
 updatedb
6270
 #+END_SRC
6271
 #+END_SRC
6272
+** Regenerating SSL certificates
6273
+If a security vulnerability arrises which requires you to regenerate your SSL certificates, such as [[http://filippo.io/Heartbleed]["heartbleed"]], then this can be done as follows:
6274
+
6275
+Obtain the latest updates:
6276
+
6277
+#+BEGIN_SRC: bash
6278
+apt-get update
6279
+apt-get upgrade
6280
+#+END_SRC
6281
+
6282
+Run *makecert <domain>* for each of your sites.
6283
+
6284
+Recreate the XMPP certificate:
6285
+
6286
+#+BEGIN_SRC: bash
6287
+openssl genrsa -out /etc/ssl/private/xmpp.key 4096
6288
+openssl req -new -x509 -key /etc/ssl/private/xmpp.key -out /etc/ssl/certs/xmpp.crt -days 3650
6289
+chmod 600 /etc/ssl/private/xmpp.key
6290
+chmod 600 /etc/ssl/certs/xmpp.crt
6291
+chown prosody:prosody /etc/ssl/private/xmpp.key
6292
+chown prosody:prosody /etc/ssl/certs/xmpp.crt
6293
+#+END_SRC
6294
+
6295
+And regenerate the IRC server keys:
6296
+
6297
+#+BEGIN_SRC: bash
6298
+openssl genrsa -out /etc/ircd-hybrid/key/ircd.key 4096
6299
+openssl req -new -x509 -key /etc/ircd-hybrid/key/ircd.key -out /etc/ircd-hybrid/key/ircd.pem -days 3650
6300
+chmod 600 /etc/ircd-hybrid/key/ircd.key
6301
+chmod 600 /etc/ircd-hybrid/key/ircd.pem
6302
+#+END_SRC
6303
+
6304
+As an added precaution you may wish to regenerate your ssh host keys:
6305
+
6306
+#+BEGIN_SRC: bash
6307
+rm /etc/ssh/ssh_host_*
6308
+dpkg-reconfigure openssh-server
6309
+#+END_SRC
6310
+
6311
+Then reboot the server with:
6312
+
6313
+#+BEGIN_SRC: bash
6314
+reboot
6315
+#+END_SRC
6316
+
6271
 * Deprecated
6317
 * Deprecated
6272
 
6318
 
6273
 The following items have been deprecated until such time as a successful installation is achieved.
6319
 The following items have been deprecated until such time as a successful installation is achieved.