You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling PKI_CONFIG_load on file config.c line 45
PKI_CONFIG_load(char *urlPath) func (file pki.config line 94): url->addr = /usr/etc/ocspd/ocspd.conf
Call of xmlCtxtReadFile(parserCtxt, url->addr [...]) line 138 in pki_config.c
Trying to read member of struct doc ...
Doc->name is not available, access try gives a segmentation fault
Exiting PKI_CONFIG_load function and returning malformated struct doc
OCSPD_load_config func, calling PKI_CONFIG_get_value on line 93 of file config.c (token initialisation)
Function PKI_CONFIG_get_value on line 410 (pki_config.c)... receiving parameters : (PKI _config *doc = (null), char *search = /serverConfig/general/pkiConfigDir)
Call of PKI_CONFIG_get_element_stack ( doc, search )) line 524 in file pki.config.c : function receive null parameter from above, null returns and error are then generated
root@kali:~/OCSPD# cat /var/log/syslog | grep ocspd
Nov 20 11:37:41 kali ocspd[11632]: OpenCA OCSPD v3.1.0 - starting.
Nov 20 11:37:41 kali ocspd[11632]: [pki_config.c:35] [ERROR] XML I/O Error: Start tag expected, '<' not found
Nov 20 11:37:41 kali ocspd[11632]: [config.c:96] [ERROR] Missing pkiConfigDir in configuration!
Nov 20 11:37:41 kali ocspd[11632]: ocspd - ERROR::can not load config file!#12 (exit with 1)#12
root@kali:/usr/etc/ocspd#
As a followup, this was new user error. OCSPd moved to XML based configuration at some point, which is obviously different that the ocspd.conf configuration I was feeding it. My confusion came from the man page for ocspd.conf that still ships and installs with the code.
hello again, I have some difficulties with the xml bug..
My xml file (ocspd) seems to be correct, I uploaded it to some xml parser / verifiers and no errors were throw.
But the programs tells that something is wrong with it, so I debugged a bit the whole thing:
root@kali:/usr/etc/ocspd# ocspd -c ocspd.conf -v
OpenCA's OCSP Responder - v3.1.0
(c) 2002-2014 by Massimiliano Pala and OpenCA Project
OpenCA licensed software
Calling PKI_CONFIG_load on file config.c line 45
PKI_CONFIG_load(char *urlPath) func (file pki.config line 94): url->addr = /usr/etc/ocspd/ocspd.conf
Call of xmlCtxtReadFile(parserCtxt, url->addr [...]) line 138 in pki_config.c
Trying to read member of struct doc ...
Doc->name is not available, access try gives a segmentation fault
Exiting PKI_CONFIG_load function and returning malformated struct doc
OCSPD_load_config func, calling PKI_CONFIG_get_value on line 93 of file config.c (token initialisation)
Function PKI_CONFIG_get_value on line 410 (pki_config.c)... receiving parameters : (PKI _config *doc = (null), char *search = /serverConfig/general/pkiConfigDir)
Call of PKI_CONFIG_get_element_stack ( doc, search )) line 524 in file pki.config.c : function receive null parameter from above, null returns and error are then generated
root@kali:~/OCSPD# cat /var/log/syslog | grep ocspd
Nov 20 11:37:41 kali ocspd[11632]: OpenCA OCSPD v3.1.0 - starting.
Nov 20 11:37:41 kali ocspd[11632]: [pki_config.c:35] [ERROR] XML I/O Error: Start tag expected, '<' not found
Nov 20 11:37:41 kali ocspd[11632]: [config.c:96] [ERROR] Missing pkiConfigDir in configuration!
Nov 20 11:37:41 kali ocspd[11632]: ocspd - ERROR::can not load config file!#12 (exit with 1)#12
root@kali:/usr/etc/ocspd#
I would like also to ask about the namespace thing in xml :
<pki:serverConfig xmlns:pki="http://www.openca.org/pki/1/0/0">
This url seems invalid (404), is that the reason of the malfunction ?
The text was updated successfully, but these errors were encountered: