mirror of https://github.com/MISP/MISP
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
parent
0a416b5609
commit
938180c004
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue