PHP Classes

File: bin/certainty-cert-symlink

Recommend this page to a friend!
  Classes of Scott Arciszewski   Certainty   bin/certainty-cert-symlink   Download  
File: bin/certainty-cert-symlink
Role: Example script
Content type: text/plain
Description: Example script
Class: Certainty
Manage SSL certificate authority file used by PHP
Author: By
Last change:
Date: 6 years ago
Size: 288 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';

if (
$argc < 2) {
    die(
'Usage: vendor/bin/certainty-cert-symlink /path/to/desired/cacert.pem' . "\n");
}

(new \
ParagonIE\Certainty\RemoteFetch())
    ->
getLatestBundle()
    ->
createSymlink($argv[1], true);