Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURL ERROR: SSL certificate problem: unable to get local issuer certificate) #21

Closed
ChristianMoritz opened this issue Jul 2, 2018 · 3 comments
Labels

Comments

@ChristianMoritz
Copy link

ChristianMoritz commented Jul 2, 2018

im trying to add my vcenter. (vcenter is working with a self signed cert.)
and i get the following error:

#0 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/CurlLoader.php(173): Icinga\Module\Vsphere\CurlLoader->request(String, String, NULL)
#1 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(175): Icinga\Module\Vsphere\CurlLoader->get(String)
#2 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(131): Icinga\Module\Vsphere\Api->prepareWsdl()
#3 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(110): Icinga\Module\Vsphere\Api->soapClient()
#4 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(233): Icinga\Module\Vsphere\Api->soapCall(String, Object(SoapVar))
#5 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(191): Icinga\Module\Vsphere\Api->fetchServiceInstance()
#6 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/Api.php(251): Icinga\Module\Vsphere\Api->getServiceInstance()
#7 /usr/share/icingaweb2/modules/vsphere/library/Vsphere/ProvidedHook/Director/ImportSource.php(28): Icinga\Module\Vsphere\Api->login()
#8 /usr/share/icingaweb2/modules/director/library/Director/Web/Table/ImportsourceHookTable.php(109): Icinga\Module\Vsphere\ProvidedHook\Director\ImportSource->fetchData()
#9 /usr/share/icingaweb2/modules/director/library/vendor/ipl/Web/Table/SimpleQueryBasedTable.php(29): Icinga\Module\Director\Web\Table\ImportsourceHookTable->prepareQuery()
#10 /usr/share/icingaweb2/modules/director/library/vendor/ipl/Web/Table/SimpleQueryBasedTable.php(15): dipl\Web\Table\SimpleQueryBasedTable->getQuery()
#11 /usr/share/icingaweb2/modules/director/library/vendor/ipl/Web/Table/QueryBasedTable.php(56): dipl\Web\Table\SimpleQueryBasedTable->getPaginationAdapter()
#12 /usr/share/icingaweb2/modules/director/library/vendor/ipl/Web/Table/QueryBasedTable.php(237): dipl\Web\Table\QueryBasedTable->getPaginator(Object(dipl\Web\Url))
#13 /usr/share/icingaweb2/modules/director/application/controllers/ImportsourceController.php(157): dipl\Web\Table\QueryBasedTable->renderTo(Object(Icinga\Module\Director\Controllers\ImportsourceController))
#14 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Director\Controllers\ImportsourceController->previewAction()
#15 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String)
#16 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#17 /usr/share/php/Icinga/Application/Web.php(409): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#18 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch()
#19 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#20 {main}

is there a way to ignore self signed certificates ???

@Thomas-Gelf
Copy link
Contributor

I guess "Verify Peer" is what you're looking for, there is a screenshot in the documentation:

Configuration

@ChristianMoritz
Copy link
Author

only with setting both (verify host & verify peer) to NO it seems to work now.
thanks

@RamiSingh
Copy link

@ChristianMoritz Thanks. Setting both (verify host & verify peer) to NO, made it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants