Skip to content

Commit

Permalink
Subjects containing multiple values will now be separated by newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvanlierop committed May 19, 2014
1 parent 92db8ea commit 11598cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Janus/OpenSsl/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function getSubjectDn()
{
$dnParts = array();
foreach ($this->_parsed['subject'] as $key => $value) {
if (is_array($value)) {
$value = implode("\n", $value);
}
$dnParts []= "/$key=$value";
}

Expand Down

0 comments on commit 11598cf

Please sign in to comment.