Skip to content

Instantly share code, notes, and snippets.

View ulfa's full-sized avatar

Ulf Angermann ulfa

  • Mülheim an der Ruhr, Germany
View GitHub Profile
@ulfa
ulfa / gist:4525223
Created January 13, 2013 17:33
Testcase for the problem, which i described in my bug report.
-module (problem).
-include_lib("eunit/include/eunit.hrl").
-ifdef(TEST).
the_problem_test() ->
{ok, File} = file:read_file("../data/global.pem"),
[Cert] = public_key:pem_decode(File),
{_, C, _ } = Cert,
A = public_key:pkix_decode_cert(C, otp),