fix: set the default PGP keyserver to pgp.circl.lu (faster than

pgp.mit.edu)

TODO: A configuration for setting up the PGP keyserver at the MISP
instance setting.
pull/2899/head
Alexandre Dulaunoy 2018-02-01 12:03:22 +01:00
parent 0a416b5609
commit 938180c004
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
2 changed files with 2 additions and 2 deletions

View File

@ -891,7 +891,7 @@ class User extends AppModel {
App::uses('SyncTool', 'Tools');
$syncTool = new SyncTool();
$HttpSocket = $syncTool->setupHttpSocket();
$response = $HttpSocket->get('https://pgp.mit.edu/pks/lookup?search=' . $email . '&op=index&fingerprint=on');
$response = $HttpSocket->get('https://pgp.circl.lu/pks/lookup?search=' . $email . '&op=index&fingerprint=on');
if ($response->code != 200) return $response->code;
$string = str_replace(array("\r", "\n"), "", $response->body);
$result = preg_match_all('/<pre>pub(.*?)<\/pre>/', $string, $matches);

View File

@ -2362,7 +2362,7 @@ function pgpChoiceSelect(uri) {
$("#gray_out").fadeOut();
$.ajax({
type: "get",
url: "https://pgp.mit.edu/" + uri,
url: "https://pgp.circl.lu/" + uri,
success: function (data) {
var result = data.split("<pre>")[1].split("</pre>")[0];
$("#UserGpgkey").val(result);