MDL-25973 add missing charset
[moodle.git] / mnet / publickey.php
CommitLineData
1d422980 1<?php
71558f85 2/**
3 * Print this server's public key and exit
b16393cb 4 *
71558f85 5 * @author Donal McMullan donal@catalyst.net.nz
6 * @version 0.0.1
7 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
8 * @package mnet
9 */
10
11require_once(dirname(dirname(__FILE__)) . '/config.php');
12require_once $CFG->dirroot.'/mnet/lib.php';
600be062 13
14if ($CFG->mnet_dispatcher_mode === 'off') {
15 print_error('mnetdisabled', 'mnet');
16}
17
8a7703ce 18header("Content-type: text/plain; charset=utf-8");
71558f85 19$keypair = mnet_get_keypair();
20echo $keypair['certificate'];