public function addCert(string $type, string $pathOrContent, bool $isContent = false): ConfigInterface
    {
        $type = mb_strtolower($type);
        $this->throwIfNotInArray($type, self::CERTS);
        if (true === $isContent) {
            $this->_certs[$type]['content'] = $pathOrContent;
        } else {
            $this->_certs[$type]['path'] = $pathOrContent;
        }
        return $this;
    }
public function addCert(string $type, string $pathOrContent, bool $isContent = false): ConfigInterface
    {
        $type = mb_strtolower($type);
        $this->throwIfNotInArray($type, self::CERTS);
        if (true === $isContent) {
            $this->_certs[$type]['content'] = $pathOrContent;
        } else {
            $this->_certs[$type]['path'] = $pathOrContent;
        }
        return $this;
    }
public function addCert ( string $ type , string $ pathOrContent , bool $ isContent = false ) : ConfigInterface { $ type = mb_strtolower ( $ type ) ; $ this -> throwIfNotInArray ( $ type , self :: CERTS ) ; if ( true === $ isContent ) { $ this -> _certs [ $ type ] [ 'content' ] = $ pathOrContent ; } else { $ this -> _certs [ $ type ] [ 'path' ] = $ pathOrContent ; } return $ this ; }
Add new cert into the configuration

@param   string $type Type of certificate [ca, cert, key, dh, tls-auth]
@param   string $pathOrContent Absolute or relative path to certificate or content of this file
@param   bool if content of file is provided
@throws  \RuntimeException
@return  ConfigInterface
Add new cert into the configuration