(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestSign(t *testing.T) { |
| 83 | s := NewServer(".X") |
| 84 | sign, err := s.Sign([]byte{5, 5, 5, 5}) |
| 85 | if sign != nil || err == nil { |
| 86 | t.Fatalf("expected error with sign function") |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func TestNewMutualTLSServer(t *testing.T) { |
| 91 | cert, _ := helpers.LoadClientCertificate("../../helpers/testdata/ca.pem", "../../helpers/testdata/ca_key.pem") |