gophercloud / utils

Apache License 2.0
20 stars 55 forks source link

TLS improvements #134

Closed Fedosin closed 3 years ago

Fedosin commented 3 years ago

This commit contains two improvements to the existing TLS module:

  1. Now the library ignores the fact the CA certificate can be broken (if it can't parse it for some reason, it just leaves an empty string without a notice). From now we raise an error in this case.

  2. It tries to prevent some obvious formatting errors in the certificate like leading and trailing spaces, additional new lines etc.