diff --git a/.circleci/@eaDir/config.yml@SynoResource b/.circleci/@eaDir/config.yml@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/.circleci/@eaDir/config.yml@SynoResource differ
diff --git a/.circleci/config.yml b/.circleci/config.yml
index c739144..c0b0ccc 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -37,6 +37,7 @@ jobs:
key: v1-dependencies-{{ checksum "composer.json" }}
# run tests!
+ - run: cp ./example.env ./.env
- run: composer dump-autoload -o
- run: php lh create --a
- run: ./vendor/bin/phpunit
diff --git a/.gitignore b/.gitignore
index 468a737..3d7eb39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,13 @@
/vendor/
/deply/
/.readme
+/.env
/cert/cnf/
+./cert/@eaDir
/cert/config/
/cert/csr/
/cert/keys/
/cert/logs/
/cert/live/
+/@eaDir
+./@eaDir
diff --git a/.travis.yml b/.travis.yml
index 57f21fa..1201dd6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,7 @@ addons:
php:
- 7.1
- 7.2
+ - 7.3
- nightly
env:
global:
@@ -19,7 +20,8 @@ matrix:
install:
- composer install --prefer-dist --no-suggest
-# before_script:
+before_script:
+ - cp ./example.env ./.env
# - composer self-update
# - composer install --no-interaction
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
index 530c41c..c0cc4c5
--- a/README.md
+++ b/README.md
@@ -3,6 +3,7 @@
* Create a Certifcate Authority that can be use to issue certificate for domains.
[](https://travis-ci.org/madeny/lhttps) [](https://circleci.com/gh/madeny/lhttps)
+[](https://bettercodehub.com/)
---
Sometimes you need https on your local machine to test some functionality of your application, like payment system, but some of them require a valid https. Like stripe. And you can’t use localhost to request a certificate from issuer like Let’s Encrypt, so your option is to create a self signed certificate authority (CA). This tool make it easy.
diff --git a/cert/readme.md b/cert/readme.md
index 126c402..e69de29 100644
--- a/cert/readme.md
+++ b/cert/readme.md
@@ -1 +0,0 @@
-# Output files here
\ No newline at end of file
diff --git a/composer.json b/composer.json
old mode 100644
new mode 100755
diff --git a/composer.lock b/composer.lock
old mode 100644
new mode 100755
diff --git a/.env b/example.env
old mode 100644
new mode 100755
similarity index 100%
rename from .env
rename to example.env
diff --git a/lh b/lh
index f855e78..83308c6 100755
--- a/lh
+++ b/lh
@@ -1,11 +1,12 @@
#! /usr/bin/env php
Local https Version 1.0>");
$app->add(new CreatorCommand);
diff --git a/lhttps.svg b/lhttps.svg
old mode 100644
new mode 100755
diff --git a/phpunit.xml b/phpunit.xml
old mode 100644
new mode 100755
diff --git a/src/@eaDir/CertificateAuthorityCreator.php@SynoResource b/src/@eaDir/CertificateAuthorityCreator.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/CertificateAuthorityCreator.php@SynoResource differ
diff --git a/src/@eaDir/CertificateKeyCreator.php@SynoResource b/src/@eaDir/CertificateKeyCreator.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/CertificateKeyCreator.php@SynoResource differ
diff --git a/src/@eaDir/Config.php@SynoResource b/src/@eaDir/Config.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/Config.php@SynoResource differ
diff --git a/src/@eaDir/CreateDomainCertificate.php@SynoResource b/src/@eaDir/CreateDomainCertificate.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/CreateDomainCertificate.php@SynoResource differ
diff --git a/src/@eaDir/DomainProvider.php@SynoResource b/src/@eaDir/DomainProvider.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/DomainProvider.php@SynoResource differ
diff --git a/src/@eaDir/Factory.php@SynoResource b/src/@eaDir/Factory.php@SynoResource
new file mode 100755
index 0000000..0145e69
Binary files /dev/null and b/src/@eaDir/Factory.php@SynoResource differ
diff --git a/src/@eaDir/Openssl.php@SynoResource b/src/@eaDir/Openssl.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/Openssl.php@SynoResource differ
diff --git a/src/@eaDir/Path.php@SynoResource b/src/@eaDir/Path.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/Path.php@SynoResource differ
diff --git a/src/@eaDir/TrustTheRootSSLCertificate.php@SynoResource b/src/@eaDir/TrustTheRootSSLCertificate.php@SynoResource
new file mode 100644
index 0000000..718eb17
Binary files /dev/null and b/src/@eaDir/TrustTheRootSSLCertificate.php@SynoResource differ
diff --git a/src/@eaDir/bash@SynoResource b/src/@eaDir/bash@SynoResource
new file mode 100644
index 0000000..d414abf
Binary files /dev/null and b/src/@eaDir/bash@SynoResource differ
diff --git a/src/CertificateAuthorityCreator.php b/src/CertificateAuthorityCreator.php
index 59c12b4..ade96a5 100644
--- a/src/CertificateAuthorityCreator.php
+++ b/src/CertificateAuthorityCreator.php
@@ -2,27 +2,17 @@
namespace Madeny\lhttps;
class CertificateAuthorityCreator{
- protected $error;
+ public $errors;
- protected $output;
+ public $output;
public function __construct($path)
{
exec("openssl req -x509 -new -nodes -passin pass:none -key {$path}/keys/root.key -sha256 -days 1024 -out {$path}/csr/root.pem -config {$path}/cnf/openssl.cnf 2>>{$path}/logs/log", $output, $error);
- $this->error = $error;
+ $this->errors = $error;
$this->output = $output;
}
-
- public function getError()
- {
- return $this->error;
- }
-
- public function getOutput()
- {
- return $this->output;
- }
}
diff --git a/src/CertificateKeyCreator.php b/src/CertificateKeyCreator.php
index 0362cd8..a79a47e 100644
--- a/src/CertificateKeyCreator.php
+++ b/src/CertificateKeyCreator.php
@@ -3,8 +3,8 @@
class CertificateKeyCreator{
- protected $output;
- protected $errors;
+ public $output;
+ public $errors;
public function __construct($path)
{
@@ -13,14 +13,4 @@ public function __construct($path)
$this->errors = $errors;
$this->output = $output;
}
-
- public function getError()
- {
- return $this->errors;
- }
-
- public function getOutput()
- {
- return $this->output;
- }
}
\ No newline at end of file
diff --git a/src/Config.php b/src/Config.php
index 74888ff..300a74b 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -15,7 +15,12 @@ function __construct()
foreach ($folders as $key => $value) {
if (file_exists(Path::all()."/".$value)) {
- echo "\n ... checking output folders \n";
+ echo "Path to your certificates >> ".Path::all()."/live"."\n";
+ exec("ls ".Path::all()."/live", $outpout, $error);
+ foreach ($outpout as $value) {
+ echo $value."\n";
+ }
+ echo "----------------------- \n";
return;
}else {
while ($i < 6) {
@@ -27,8 +32,9 @@ function __construct()
}
}
- public static function file($path, $domainOne, $domainTwo)
+ public static function file($path, $domain)
{
- return new Openssl($path, $domainOne, $domainTwo);
+ return new Openssl($path, $domain);
}
}
+
diff --git a/src/CreateDomainCertificate.php b/src/CreateDomainCertificate.php
index a64b2c3..e13be18 100644
--- a/src/CreateDomainCertificate.php
+++ b/src/CreateDomainCertificate.php
@@ -7,9 +7,9 @@ class CreateDomainCertificate{
protected $output;
- function __construct($path, $domainOne)
+ function __construct($path, $domain)
{
- exec("openssl req -new -sha256 -nodes -out {$path}/csr/{$domainOne}.csr -newkey rsa:2048 -keyout {$path}/live/{$domainOne}.ssl.key -config {$path}/cnf/openssl.cnf 2>>{$path}/logs/log", $output, $error);
+ exec("openssl req -new -sha256 -nodes -out {$path}/csr/{$domain}.csr -newkey rsa:2048 -keyout {$path}/live/{$domain}.ssl.key -config {$path}/cnf/openssl.cnf 2>>{$path}/logs/log", $output, $error);
$this->error = $error;
diff --git a/src/DomainProvider.php b/src/DomainProvider.php
index 4d61dca..f494d05 100644
--- a/src/DomainProvider.php
+++ b/src/DomainProvider.php
@@ -3,29 +3,18 @@
class DomainProvider
{
- protected $domainOne;
- protected $domainTwo;
+ protected $domain;
- public function getDomainOne()
+ public function getdomain()
{
- $this->domainOne = trim(preg_replace('/\s\s+/', ' ', $this->domainOne));
+ $this->domain = trim(preg_replace('/\s\s+/', ' ', $this->domain));
- return $this->domainOne;
+ return $this->domain;
}
- public function getDomainTwo()
+ public function setdomain($domain)
{
- $this->domainTwo = 'www.'.$this->domainOne;
-
- return $this->domainTwo;
- }
- public function setDomainOne($domainOne)
- {
- if (!$domainOne) {
- $this->domainOne = "localhost";
- }else{
- $this->domainOne = $domainOne;
- }
+ !$domain ? $this->domain = "localhost" : $this->domain = $domain;
}
}
\ No newline at end of file
diff --git a/src/Factory.php b/src/Factory.php
index 329abad..1cfeb8d 100644
--- a/src/Factory.php
+++ b/src/Factory.php
@@ -20,9 +20,9 @@ public static function create($path)
}
- public static function domain($path, $domainOne, $domainTwo)
+ public static function domain($path, $domain)
{
- return new CreateDomainCertificate($path, $domainOne, $domainTwo);
+ return new CreateDomainCertificate($path, $domain);
}
@@ -37,11 +37,6 @@ public static function trust($path, $OS, $option)
return new TrustTheRootSSLCertificate($path, $OS, $option);
}
- // public static function deply($file, $path)
- // {
- // exec("sudo cp {$file} {$path}");
- // }
-
}
diff --git a/src/Openssl.php b/src/Openssl.php
index 2567f3a..aabb1d6 100644
--- a/src/Openssl.php
+++ b/src/Openssl.php
@@ -4,7 +4,7 @@
class Openssl
{
- public function __construct($path, $domainOne, $domainTwo)
+ public function __construct($path, $domain)
{
$v3 = [
@@ -13,8 +13,7 @@ public function __construct($path, $domainOne, $domainTwo)
'keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment',
'subjectAltName = @alt_names',
"[alt_names]",
- "DNS.1 = {$domainOne}",
- "DNS.2 = {$domainTwo}"
+ "DNS.1 = {$domain}"
];
$str = implode("\n", $v3);
diff --git a/src/Path.php b/src/Path.php
index 1d1dc14..16f1a17 100644
--- a/src/Path.php
+++ b/src/Path.php
@@ -5,10 +5,11 @@
class Path{
-
+// need refactory.
public static function all()
{
- return realpath(__DIR__.'/../cert');
+ $path = realpath(__DIR__.'/../cert');
+ return $path;
}
}
\ No newline at end of file
diff --git a/src/TrustTheRootSSLCertificate.php b/src/TrustTheRootSSLCertificate.php
index 01ba4e9..81bf05f 100644
--- a/src/TrustTheRootSSLCertificate.php
+++ b/src/TrustTheRootSSLCertificate.php
@@ -10,14 +10,8 @@ class TrustTheRootSSLCertificate{
function __construct($path, $checker, $option)
{
- // if (strpos($checker, "Darwin") !== false) {
exec("sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {$path}/csr/root.pem 2>>{$path}/logs/log", $output, $error);
$this->error = $error;
-
- // }else{
- // return $this->error = 1;
- // }
-
}
public function getError()
diff --git a/src/bash/@eaDir/script.sh@SynoResource b/src/bash/@eaDir/script.sh@SynoResource
new file mode 100755
index 0000000..eac236d
Binary files /dev/null and b/src/bash/@eaDir/script.sh@SynoResource differ
diff --git a/src/bash/script.sh b/src/bash/script.sh
new file mode 100755
index 0000000..3321dc6
--- /dev/null
+++ b/src/bash/script.sh
@@ -0,0 +1,14 @@
+# !/usr/bin/env bash
+# Generate the private key.
+openssl genrsa -des3 -passout pass:none -out ../../cert/keys/root.key 2048 2>> ../../cert/logs/log.key;
+
+# Create root CA from private key.
+openssl req -x509 -new -nodes -passin pass:none -key ../../cert/keys/root.key -sha256 -days 1024 -out ../../cert/csr/root.pem -config ../../cert/cnf/openssl.cnf 2>> ../../cert/logs/log.CA;
+
+# Create domain certificate
+openssl req -new -sha256 -nodes -out ../../cert/csr/byrun.csr -newkey rsa:2048 -keyout ../../cert/live/byrun.ssl.key -config ../../cert/cnf/openssl.cnf 2>> ../../cert/logs/log.domain
+
+# Certificate sign request
+openssl x509 -req -in ../../cert/csr/byrun.csr -CA ../../cert/csr/root.pem -CAkey ../../cert/keys/root.key -CAcreateserial -out ../../cert/live/byrun.ssl.crt -days 500 -sha256 -extfile ../../cert/cnf/v3.ext -passin pass:none 2>>../../cert/logs/log.sign
+
+
diff --git a/src/command/@eaDir/CreatorCommand.php@SynoResource b/src/command/@eaDir/CreatorCommand.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/src/command/@eaDir/CreatorCommand.php@SynoResource differ
diff --git a/src/command/CreatorCommand.php b/src/command/CreatorCommand.php
index be9fbbe..3cba6a6 100644
--- a/src/command/CreatorCommand.php
+++ b/src/command/CreatorCommand.php
@@ -26,7 +26,8 @@ protected function configure()
'a',
null,
InputOption::VALUE_NONE,
- 'This will add your root certificate on your OS trusted list?'
+ // 'This will add your root certificate on your OS trusted list?'
+ 'Config your certificate for trust policy.'
);
@@ -40,13 +41,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
$path = Path::all();
(new Config);
+
$domain = new DomainProvider();
$domainName = $input->getArgument('domainName');
- $domain->setDomainOne($domainName);
+ $domain->setdomain($domainName);
- Config::file($path, $domain->getDomainOne(), $domain->getDomainTwo());
+ Config::file($path, $domain->getdomain());
// generate a root certificate key.
Factory::keygen($path);
@@ -55,7 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
Factory::create($path);
// Create cert key for a domain.
- Factory::domain($path, $domain->getDomainOne(), $domain->getDomainTwo());
+ Factory::domain($path, $domain->getdomain());
// Request a certificate sign from root certificate authority.
@@ -73,11 +75,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
// Disply error messages.
if ( $trust->getError() == 2) {
- $output->writeln('Sorry this host not support!');
+ $output->writeln('Sorry this host is not support!');
}elseif ($trust->getError() == 1) {
- $output->writeln('Fail to add your certificate to trust list you can do it manually');
+ $output->writeln('Fail to config your certificate for trust policy. see help for more information');
}elseif ($trust->getError() == 0) {
- $output->writeln('Your certificate is added to your trust list');
+ $output->writeln('Your certificate is configured');
}
}
diff --git a/tests/@eaDir/CertificateAuthorityCreatorTest.php@SynoResource b/tests/@eaDir/CertificateAuthorityCreatorTest.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/tests/@eaDir/CertificateAuthorityCreatorTest.php@SynoResource differ
diff --git a/tests/@eaDir/CertificateKeyCreatorTest.php@SynoResource b/tests/@eaDir/CertificateKeyCreatorTest.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/tests/@eaDir/CertificateKeyCreatorTest.php@SynoResource differ
diff --git a/tests/@eaDir/CreateDomainCertificateTest.php@SynoResource b/tests/@eaDir/CreateDomainCertificateTest.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/tests/@eaDir/CreateDomainCertificateTest.php@SynoResource differ
diff --git a/tests/@eaDir/CustomTestCase.php@SynoResource b/tests/@eaDir/CustomTestCase.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/tests/@eaDir/CustomTestCase.php@SynoResource differ
diff --git a/tests/@eaDir/FactoryTest.php@SynoResource b/tests/@eaDir/FactoryTest.php@SynoResource
new file mode 100755
index 0000000..718eb17
Binary files /dev/null and b/tests/@eaDir/FactoryTest.php@SynoResource differ
diff --git a/tests/CertificateAuthorityCreatorTest.php b/tests/CertificateAuthorityCreatorTest.php
index 91103cb..795eb07 100644
--- a/tests/CertificateAuthorityCreatorTest.php
+++ b/tests/CertificateAuthorityCreatorTest.php
@@ -12,7 +12,7 @@ public function it_can_create_certificate_authority()
$certificateAuthority = new CertificateAuthorityCreator($this->path);
- $this->assertEquals(0, $certificateAuthority->getError());
+ $this->assertEquals(0, $certificateAuthority->errors);
}
/** @test */
@@ -20,7 +20,7 @@ public function it_can_return_an_error()
{
$certificateAuthority = new CertificateAuthorityCreator("fake/path");
- $this->assertEquals(2, $certificateAuthority->getError());
+ $this->assertEquals(2, $certificateAuthority->errors);
}
/** @test */
@@ -28,7 +28,7 @@ public function it_can_return_array_of_output()
{
$certificateAuthority = new CertificateAuthorityCreator($this->path);
- $this->assertEquals(0, count($certificateAuthority->getOutput()));
+ $this->assertEquals(0, count($certificateAuthority->output));
}
}
\ No newline at end of file
diff --git a/tests/CertificateKeyCreatorTest.php b/tests/CertificateKeyCreatorTest.php
index dc278d8..3fec0cc 100644
--- a/tests/CertificateKeyCreatorTest.php
+++ b/tests/CertificateKeyCreatorTest.php
@@ -9,7 +9,7 @@ public function it_can_generate_a_RSA_2048_key()
{
$rsa = new CertificateKeyCreator($this->path);
- $this->assertEquals(0, $rsa->getError());
+ $this->assertEquals(0, $rsa->errors);
}
/** @test */
@@ -17,7 +17,7 @@ public function it_can_generate_an_error()
{
$rsa = new CertificateKeyCreator("fake/path");
- $this->assertEquals(2, $rsa->getError());
+ $this->assertEquals(2, $rsa->errors);
}
/** @test */
@@ -25,7 +25,7 @@ public function it_can_ouput_logs()
{
$rsa = new CertificateKeyCreator($this->path);
- $output = count($rsa->getOutput());
+ $output = count($rsa->output);
$this->assertEquals(0, $output);
}
diff --git a/tests/CreateDomainCertificateTest.php b/tests/CreateDomainCertificateTest.php
index 5cd2a40..2e6b2cb 100644
--- a/tests/CreateDomainCertificateTest.php
+++ b/tests/CreateDomainCertificateTest.php
@@ -9,7 +9,7 @@ class CreateDomainCertificateTest extends CustomTestCase{
public function it_can_create_domain_certificate()
{
$domainCertificate =
- new CreateDomainCertificate($this->path, $this->domain->getDomainOne());
+ new CreateDomainCertificate($this->path, $this->domain->getdomain());
$this->assertEquals(0, $domainCertificate->getError());
}
@@ -24,7 +24,7 @@ public function it_can_report_an_error()
/** @test */
public function it_can_return_array_of_output()
{
- $domainCertificate = new CreateDomainCertificate($this->path, $this->domain->getDomainOne());
+ $domainCertificate = new CreateDomainCertificate($this->path, $this->domain->getdomain());
$this->assertEquals(0, count($domainCertificate->getOutput()));
}
diff --git a/tests/CreateTest.php b/tests/CreateTest.php
new file mode 100644
index 0000000..adf80a6
--- /dev/null
+++ b/tests/CreateTest.php
@@ -0,0 +1,17 @@
+assertEquals(0, $error);
+
+ }
+
+}
diff --git a/tests/CreateTest.php.save b/tests/CreateTest.php.save
new file mode 100644
index 0000000..be08e28
--- /dev/null
+++ b/tests/CreateTest.php.save
@@ -0,0 +1,20 @@
+assertEquals(1, $error());
+
+
+ }
+}
diff --git a/tests/CustomTestCase.php b/tests/CustomTestCase.php
index 99815d4..ee3d4f8 100644
--- a/tests/CustomTestCase.php
+++ b/tests/CustomTestCase.php
@@ -20,9 +20,9 @@ public function setUp()
$this->domain = new DomainProvider;
- $this->domain->setDomainOne('example.com');
+ $this->domain->setdomain('example.com');
- Config::file($this->path, $this->domain->getDomainOne(), $this->domain->getDomainTwo());
+ Config::file($this->path, $this->domain->getdomain());
$this->factory = new Factory();
}
diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php
index b9ead40..2f8aa4f 100644
--- a/tests/FactoryTest.php
+++ b/tests/FactoryTest.php
@@ -24,7 +24,7 @@ public function a_user_can_generate_root_certificate_key()
}
$this->assertEquals($rootkey, true);
- $this->assertEquals($this->factory->keygen($this->path)->getError(), 0);
+ $this->assertEquals($this->factory->keygen($this->path)->errors, 0);
}
/** @test */
@@ -46,20 +46,20 @@ public function a_user_can_create_root_certificate_authority()
$rootCA = file_exists($this->path.'/csr/root.pem');
$this->assertEquals($rootCA, true);
- $this->assertEquals($this->factory->create($this->path)->getError(), 0);
+ $this->assertEquals($this->factory->create($this->path)->errors, 0);
}
/** @test */
public function a_user_can_create_certificate_key_for_domain()
{
- $domainkey = file_exists($this->path.'/live/'.$this->domain->getDomainOne().'.ssl.key');
- $domaincsr = file_exists($this->path.'/csr/'.$this->domain->getDomainOne().'.csr');
+ $domainkey = file_exists($this->path.'/live/'.$this->domain->getdomain().'.ssl.key');
+ $domaincsr = file_exists($this->path.'/csr/'.$this->domain->getdomain().'.csr');
if ($domainkey && $domaincsr) {
echo "\n You already have a key for this domain we can sign this \n";
}else{
- Factory::domain($this->path, $this->domain->getDomainOne(), $this->domain->getDomainTwo());
+ Factory::domain($this->path, $this->domain->getdomain());
$domainkey = true;
$domaincsr = true;
@@ -68,7 +68,7 @@ public function a_user_can_create_certificate_key_for_domain()
$this->assertEquals($domainkey, true);
$this->assertEquals($domaincsr, true);
- $this->assertEquals($this->factory->domain($this->path, $this->domain->getDomainOne(), $this->domain->getDomainTwo() )->getError(), 0);
+ $this->assertEquals($this->factory->domain($this->path, $this->domain->getdomain() )->getError(), 0);
}
@@ -76,7 +76,7 @@ public function a_user_can_create_certificate_key_for_domain()
/** @test */
public function a_user_can_sign_a_domain_cert_with_root_certificate_authority()
{
- $request = Factory::request($this->path, $this->domain->getDomainOne());
+ $request = Factory::request($this->path, $this->domain->getdomain());
$log = file_get_contents(realpath($this->path.'/logs/log'));
@@ -88,7 +88,7 @@ public function a_user_can_sign_a_domain_cert_with_root_certificate_authority()
}
$this->assertEquals($request->getError(), 0);
- $this->assertEquals($this->factory->request($this->path, $this->domain->getDomainOne())->getError(), 0);
+ $this->assertEquals($this->factory->request($this->path, $this->domain->getdomain())->getError(), 0);
}
/** @test */