Skip to content

Segmentation fault at PKI_X509_verify in crl.c #53

@dharanikumar-s

Description

@dharanikumar-s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions