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

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

Open
bigbrett opened this issue Jun 12, 2023 · 0 comments
Open

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

bigbrett opened this issue Jun 12, 2023 · 0 comments
Assignees

Comments

@bigbrett
Copy link
Contributor

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)


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