You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
449 B
PHP
21 lines
449 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: eater
|
|
* Date: 6/6/16
|
|
* Time: 11:28 PM
|
|
*/
|
|
|
|
namespace Eater\Glim\Handler;
|
|
|
|
|
|
class CRL extends Main
|
|
{
|
|
function handle()
|
|
{
|
|
return $this->getResponse()
|
|
->withHeader('Content-Type', 'plain/text')
|
|
->withHeader('Content-Disposition', 'attachment; filename="crl.pem"')
|
|
->write(file_get_contents($this->getCore()->getBaseDir() . '/storage/ca/crl.pem'));
|
|
}
|
|
} |