| 290 | "error '\\d+' while reading PEM bundle"; |
| 291 | static const string& MSG_NONE_VALID = "PEM bundle contains no valid certificates"; |
| 292 | static string _msg_time(int invalid_notbefore_cnt, int invalid_notafter_cnt) { |
| 293 | return Substitute("PEM bundle contains $0 invalid certificate(s) with notBefore in the " |
| 294 | "future and $1 invalid certificate(s) with notAfter in the past", |
| 295 | invalid_notbefore_cnt, invalid_notafter_cnt); |
| 296 | } |
| 297 | |
| 298 | /// Constants used in the tests |
| 299 | static const string& INVALID_CERT_TEXT = "-----BEGIN CERTIFICATE-----\nnot a cert"; |