No longer need to test for type, it should exist
This commit is contained in:
@@ -45,10 +45,11 @@ class SSL extends Type
|
||||
if ($this->cert)
|
||||
return Arr::get($this->crt_parse,'name');
|
||||
|
||||
else {
|
||||
elseif ($this->csr) {
|
||||
$dn = '';
|
||||
$dna = openssl_csr_get_subject($this->csr);
|
||||
|
||||
dump(['dna'=>$dna,'csr'=>$this->csr,'id',$this->id]);
|
||||
foreach ($dna as $k=>$v) {
|
||||
if ($dn)
|
||||
$dn .= ',';
|
||||
@@ -57,6 +58,8 @@ class SSL extends Type
|
||||
}
|
||||
|
||||
return $dn;
|
||||
} else {
|
||||
return '[NO DN]';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user