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

Segmentation fault at PKI_X509_verify in crl.c #53

Open
dharanikumar-s opened this issue Jul 8, 2020 · 0 comments
Open

Segmentation fault at PKI_X509_verify in crl.c #53

dharanikumar-s opened this issue Jul 8, 2020 · 0 comments

Comments

@dharanikumar-s
Copy link

Hi,
I am hitting a segmentation fault at PKI_X509_verify in crl.c
This is my execution output.

sudo ./ocspd -c ~/workspace/ocspd/newconf/ocspd.xml -debug -v -stdout

OpenCA's OCSP Responder - v3.1.2 (Build: Wed Jul  8 17:35:19 IST 2020)
(c) 2002-2018 by Massimiliano Pala and OpenCA Project
    OpenCA licensed software

Jul  8 12:05:38 2020 GMT [14547] GENERAL: OpenCA OCSPD v3.1.2 (Wed Jul  8 17:35:19 IST 2020)- starting.
Jul  8 12:05:38 2020 GMT [14547] INFO: [token.c:2574] [DEBUG] ERROR, can not load directory /root/.libpki/profile.d!
Jul  8 12:05:38 2020 GMT [14547] INFO: [token.c:831] [DEBUG] Can not load profiles (/root/.libpki/profile.d)

Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:876] [DEBUG] Loading file /home/dharani/workspace/ocspd/newconf/ca.d/self-certs.xml
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:892] [DEBUG] Loaded /home/dharani/workspace/ocspd/newconf/ca.d/self-certs.xml file
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:866] [DEBUG] Skipping file .
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:866] [DEBUG] Skipping file ..
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:412] [DEBUG] Element Not Found [Search: /serverConfig/security/chrootDir, Position: -1]
Jul  8 12:05:38 2020 GMT [14547] INFO: [config.c:277] [DEBUG] Selected response digest algorithm: SHA1
Jul  8 12:05:38 2020 GMT [14547] INFO: [config.c:298] [DEBUG] Selected signature digest algorithm: SHA256
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:412] [DEBUG] Element Not Found [Search: /serverConfig/general/dbUrl, Position: -1]
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:412] [DEBUG] Element Not Found [Search: /serverConfig/general/dbPersistant, Position: -1]
Jul  8 12:05:38 2020 GMT [14547] INFO: [config.c:394] [DEBUG] Building CA List
Jul  8 12:05:38 2020 GMT [14547] GENERAL: Processing Configuration for [CA: IntermediateCA]
Jul  8 12:05:38 2020 GMT [14547] INFO: [pki_config.c:412] [DEBUG] Element Not Found [Search: /caConfig/caCertValue, Position: -1]
Jul  8 12:05:38 2020 GMT [14547] INFO: [config.c:623] [DEBUG] CRL Downloading Process Started [CA: IntermediateCA, URL: /home/dharani/workspace/ocspd/newconf/crls/test.crl]
Jul  8 12:05:38 2020 GMT [14547] INFO: [config.c:837] [DEBUG] CRL loaded successfully [URL: /home/dharani/workspace/ocspd/newconf/crls/test.crl]
Jul  8 12:05:38 2020 GMT [14547] INFO: [crl.c:213] [DEBUG] Got the public key from the CA cert [Scheme: ECDSA, Key Size: 256]
Segmentation fault

The attached zip contains the ocspd configuration files and the folder structure.
My CA uses ECDSA 256bit key. Does ocsdp support this?

ocspd_conf.zip

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

No branches or pull requests

1 participant