phonohawk/HsOpenSSL — pull request #10 by mvv (2012-04-09 11:53:36+00:00)
Title: Fix X509 PEM reading/writing.

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`.