Make public key available from site.
This commit is contained in:
parent
b5dea3e2cc
commit
5d3febd4bb
|
@ -1,6 +1,12 @@
|
|||
<?php
|
||||
echo '<center>';
|
||||
echo '<font size="1em">';
|
||||
$pubkeyfile = getcwd().'/../tmp/pubkey.pem';
|
||||
if(is_file($pubkeyfile)) {
|
||||
echo 'sitename: '.$CONFIG[site_shortname].' ';
|
||||
echo '<a href="/tmp/pubkey.pem" target=_blank>public key</a>';
|
||||
echo '<br />';
|
||||
}
|
||||
echo '<i>rocksolid light</i> '.$rslight_version;
|
||||
echo '<br />';
|
||||
echo '<a href="https://github.com/novabbs/rocksolid-light" target=_blank>clearnet</a>';
|
||||
|
|
|
@ -56,6 +56,10 @@
|
|||
|
||||
@mkdir($logdir,0755,'recursive');
|
||||
@mkdir($lockdir,0755,'recursive');
|
||||
|
||||
if(!is_file($webtmp.'/pubkey.pem') && is_file($config_dir.'/ssl/pubkey.pem')) {
|
||||
copy($config_dir.'/ssl/pubkey.pem', $webtmp.'/pubkey.pem');
|
||||
}
|
||||
|
||||
if(isset($CONFIG['enable_nocem']) && $CONFIG['enable_nocem'] == true) {
|
||||
@mkdir($spooldir."nocem",0755,'recursive');
|
||||
|
|
Loading…
Reference in New Issue