Certificates with OU= give an error when listing smart-proxy cert list.
|Assigned To:||Daniel Lobato Garcia|
|Target version:||Team Daniel - Iteration 9|
|Found in release:||1.13.3||Pull request:||https://github.com/theforeman/foreman/pull/4185|
|Velocity based estimate||-|
When a certificate containing an OU (possibly any other field than CN) is signed. An error occurs when viewing cert list page.
Possibly, the id of the certificate is not parsed correctly and ends up containing a '/' character which is not allowed.
The certificate could be parsed in the manner puppet does it https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/ssl.rb#L44 to avoid this issue.
Fixes #18040 - URL escape PuppetCA CN on proxy view
If the CN contains characters that cannot be displayed in an URL, like
'mcollective/OL=mcollective', the puppetca list will not be able to
The reason is that Rails cannot generate an URL for such CNs, so we need
to convert it into URL-friendly style.