The regex /^([a-z]:?)?\//i introduced in 334e98c59f85b1b25152ae988ccb170666ced365 is intended to pick Windows file paths (C:/whatever).
But ^ matcher stands for "start of line", which leads to false-positive matches when inline certificate has a char with slash at the begginning of a some line.
The regex
/^([a-z]:?)?\//i
introduced in 334e98c59f85b1b25152ae988ccb170666ced365 is intended to pick Windows file paths (C:/whatever
). But^
matcher stands for "start of line", which leads to false-positive matches when inline certificate has a char with slash at the begginning of a some line.Certs like this one
are treated as a file path.
As result Bunny is unable to connect to the RMQ server with self signed certificate and prints an error:
A regexp matcher
\A
stands for "Start of string" and resolves false-positive match.