Fix X509 PEM reading/writing. #10

merged 1 commit into from Apr 16, 2012

2 participants

mvv commented Apr 9, 2012

I found that .crt files written with writeX509 are rejected by SSL_load_client_CA_file and SSL_CTX_use_certificate_file because they have incorrect start lines ("TRUSTED CERTIFICATE" vs just "CERTIFICATE"). I checked the code and it seems that for some reason read/writeX509 use PEM_read/write_bio_X509_AUX instead of PEM_read/write_bio_X509.

@phonohawk phonohawk merged commit 0efc202 into phonohawk:master Apr 16, 2012

Merged. I think I am the one who chose _AUX but I can't remeber why I did so. Thank you for your patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment