Skip to content

x509-ca-test.sh fails with wolfSSL v5.6.2-stable #127

@bigbrett

Description

@bigbrett

x509-ca-test.sh fails when compiled against wolfSSL v5.6.2-stable. It works fine for v5.6.0-stable.

Failure log below:

=====================================
   wolfclu 0.1.2: ./test-suite.log
=====================================

# TOTAL: 18
# PASS:  15
# SKIP:  2
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 1

.. contents:: :depth: 2

SKIP: tests/dsa/dsa-test.sh
===========================

grep: warning: stray \ before -
DSA support not compiled into wolfSSL
 Error returned: -1.
SKIP tests/dsa/dsa-test.sh (exit status: 77)

ERROR: tests/x509/x509-ca-test.sh
=================================

grep: warning: stray \ before -
./wolfssl ca
	-in CSR file input
	-out file to output to
	-keyfile file to read private key from
	-cert file to read CA from
	-extensions section in config file to parse extensions from
	-md type of hash i.e sha256
	-inform type PEM/DER of CSR input
	-config file to read configuration from
	-days number of days for certificate to be valid
	-selfsign sign with key associated with cert
./wolfssl ca
	-in CSR file input
	-out file to output to
	-keyfile file to read private key from
	-cert file to read CA from
	-extensions section in config file to parse extensions from
	-md type of hash i.e sha256
	-inform type PEM/DER of CSR input
	-config file to read configuration from
	-days number of days for certificate to be valid
	-selfsign sign with key associated with cert
Unable to open config file ca-example.conf
Unable to create a signer struct
Error returned: -1.
Private key does not match with CA
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/server-cert.pem
CA file is not root CA
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/ca-cert.pem
Verification Failed
Err (-275): ASN self-signed certificate error
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/ca-cert.pem
OK
Fail on ./wolfssl ca -config ca.conf -in tmp-ca.csr -out test_ca.pem -extensions usr_cert -md sha512 -days 3650 -cert ./certs/ca-ecc-cert.pem -keyfile ./certs/ca-ecc-key.pem
ERROR tests/x509/x509-ca-test.sh (exit status: 99)

SKIP: tests/x509/CRL-verify-test.sh
===================================

recompile wolfSSL with CRL support
 Error returned: -1.
SKIP tests/x509/CRL-verify-test.sh (exit status: 77)


Metadata

Metadata

Assignees

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