Sign fake certificates in tests

The tests didn't pass for me on a recent OpenSSL version. This fixes that for me.