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

On MSYS2 (MinGW64) appstest.sh fails on "verify time stamp response" #31

Open
kinichiro opened this issue Feb 20, 2017 · 2 comments
Open

Comments

@kinichiro
Copy link
Owner

kinichiro commented Feb 20, 2017

X509_verify_cert() returns error for self signed certificate, MinGW only.
Cygwin is OK.

[TEST] ts ... verify time stamp response
Verification: FAILED
2587050918:error:2FFFF064:time stamp routines:CRYPTO_internal:
certificate verify error:ts/ts_rsp_verify.c:253:Verify error:self signed certificate
:-< error occurs, exit status = [ 1 ]

Environment.

$ uname -a
MINGW64_NT-6.1 INOGUCHI2 2.6.0(0.304/5/3) 2016-09-07 20:45 x86_64 Msys
@kinichiro
Copy link
Owner Author

error message "self signed certificate" is X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT .
in x509_vfy.c, this code sets this error message.

...
	ok = ctx->get_issuer(&xtmp, ctx, x);
	if ((ok <= 0) || X509_cmp(x, xtmp)) {
		ctx->error = X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT;
...

@kinichiro
Copy link
Owner Author

I saw X509_cmp() returns -1

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