Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: myadmin-plugins/globalsign-ssl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: myadmin-plugins/globalsign-ssl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 11 commits
  • 9 files changed
  • 1 contributor

Commits on Nov 16, 2019

  1. a bunch of updates switching out old admin_mail code with the new Mai…

    …l class adminMail call and optmizing things here and there as i go'
    detain committed Nov 16, 2019
    Copy the full SHA
    58d5371 View commit details
  2. namespace fixs

    detain committed Nov 16, 2019
    Copy the full SHA
    ee2897b View commit details

Commits on Feb 27, 2020

  1. Copy the full SHA
    c386fff View commit details

Commits on Jul 28, 2022

  1. formatting update

    detain committed Jul 28, 2022
    Copy the full SHA
    8da7b6b View commit details

Commits on Aug 4, 2022

  1. Copy the full SHA
    d41587e View commit details

Commits on Sep 29, 2022

  1. Copy the full SHA
    b92566a View commit details

Commits on Nov 10, 2022

  1. Copy the full SHA
    e4cdac1 View commit details

Commits on Jun 23, 2023

  1. updates to the loaders

    detain committed Jun 23, 2023
    Copy the full SHA
    ca447bb View commit details

Commits on Feb 3, 2024

  1. php7.4 updates

    detain committed Feb 3, 2024
    Copy the full SHA
    0fd84a7 View commit details

Commits on Dec 5, 2024

  1. update to plugins

    detain committed Dec 5, 2024
    Copy the full SHA
    e8e15bc View commit details

Commits on Jan 1, 2025

  1. updated copyright

    detain committed Jan 1, 2025
    Copy the full SHA
    07c065b View commit details
Showing with 2,074 additions and 2,054 deletions.
  1. +3 −1 bin/GetDVApproverList.php
  2. +3 −1 bin/list_certs.php
  3. +50 −0 bin/make_cert.php
  4. +17 −0 bin/parse_ssl_extra.php
  5. +1 −1 composer.json
  6. +1,452 −1,500 src/GlobalSign.php
  7. +144 −148 src/Plugin.php
  8. +331 −331 tests/GlobalSignTest.php
  9. +73 −72 tests/bootstrap.php
4 changes: 3 additions & 1 deletion bin/GetDVApproverList.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env php
<?php

use \Detain\MyAdminGlobalSign\GlobalSign;

include __DIR__.'/../../../include/functions.inc.php';
function_requirements('class.GlobalSign');
$GB = new GlobalSign(GLOBALSIGN_USERNAME, GLOBALSIGN_PASSWORD);
$approvers = obj2array($GB->GetDVApproverList($_SERVER['argv'][1]));
print_r($approvers);
4 changes: 3 additions & 1 deletion bin/list_certs.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

use \Detain\MyAdminGlobalSign\GlobalSign;

include __DIR__.'/../../../../include/functions.inc.php';
function_requirements('class.GlobalSign');
$ssl = new \Detain\MyAdminGlobalSign\GlobalSign(GLOBALSIGN_USERNAME, GLOBALSIGN_PASSWORD);
$orders = $ssl->GetCertificateOrders();
print_r($orders);
50 changes: 50 additions & 0 deletions bin/make_cert.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env php
<?php
/**
* Creates A CSR And SelfS Signs It
* @author Joe Huss <detain@interserver.net>
* @package MyAdmin
* @category make_cert
* @copyright 2025
*/

$_SERVER['HTTP_HOST'] = 'inssl.net';
// $_SERVER['HTTP_HOST'] = 'illuminati.interserver.net';

require_once __DIR__.'/../../include/functions.inc.php';

$webpage = false;
define('VERBOSE_MODE', false);
/* $db = clone $GLOBALS['tf']->db;
$db2 = clone $db;
$GLOBALS['tf']->session->create(160306, 'admin');
$sid = $GLOBALS['tf']->session->sessionid;
*/
if (file_exists(__DIR__.'/.make_cert.last')) {
include __DIR__.'/.make_cert.last';
}
$vars = ['fqdn' => 'Fully Qualified Domain Name', 'email' => 'Email Address', 'city' => 'City', 'state' => 'State (Full State Not Abbreviation)', 'country' => 'Country (2 Letters)', 'company' => 'Company', department => 'Department'];
$fout = "<?php\n";
foreach ($vars as $var => $description) {
if (isset($settings[$var])) {
fwrite(STDOUT, "$description [" . $settings[$var] . ']? ');
$t = trim(fgets(STDIN));
if ($t == '') {
$t = $settings[$var];
}
} else {
fwrite(STDOUT, "$description? ");
$t = trim(fgets(STDIN));
}
$fout .= "\$settings['{$var}'] = '{$t}';\n";
eval('$'.$var.' = "$t";');
}
$fout .= "?>\n";
$fd = fopen(__DIR__.'/.make_cert.last', 'wb');
fwrite($fd, $fout);
fclose($fd);
//echo "Calling make_csr($fqdn, $email, $city, $state, $country, $company, $department);\n";
[$csr, $sspublic, $ssprivate] = make_csr($fqdn, $email, $city, $state, $country, $company, $department);
echo "Here is your CSR:\n$csr\n\n";
echo "Here is your Self Signed Public Key:\n$sspublic\n\n";
echo "Here is your Self Signed Private Key:\n$ssprivate\n\n";
17 changes: 17 additions & 0 deletions bin/parse_ssl_extra.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env php
<?php
/* This converts people from the old montioring format to the new one .. lots more efficient and what not ... */
$_SERVER['HTTP_HOST'] = 'my.interserver.net';
require_once __DIR__.'/../../include/functions.inc.php';

$db = clone $GLOBALS['tf']->db;
$db2 = clone $db;
$result = $db->query('select * from ssl_certs where ssl_id=' .intval($_SERVER['argv'][1]));
while ($db->next_record(MYSQL_ASSOC)) {
echo 'Got Unparsed '.$db->Record['ssl_extra'].PHP_EOL;
$extra = myadmin_unstringify($db->Record['ssl_extra']);
print_r($extra);
// $updates[] = "ssl_extra='" .$db->real_escape($extra)."'";
// echo "updates:".print_r($updates,true).PHP_EOL;
// $db2->query("update ssl_certs set " . implode(', ', $updates) . " where ssl_id=" . $db->Record['ssl_id'], __LINE__, __FILE__);
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
"require": {
"php": ">=5.0.0",
"ext-soap": "*",
"symfony/event-dispatcher": ">=2.8.26",
"symfony/event-dispatcher": "^5.0@stable",
"detain/myadmin-plugin-installer": "dev-master"
},
"require-dev": {
Loading