Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !1547

recipe/certificate_authority: use UTF-8 for CA certificate

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Titouan Soulard requested to merge tsoulard/slapos:for-mr-dodo into master Mar 13, 2024
  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 1

The CertificateAuthority tool in ERP5 uses UTF8 encoding for certificates, but by default OpenSSL does not. This cause an error when using non-ascii characters:

The localityName field is different between CA certificate and the request

To solve the problem, the Certificate Authority recipe should use the same encoding as ERP5, which requires adding -utf8 option when invoking OpenSSL.

For instance, creating a certificate with localityName Москва will give the following with the default OpenSSL encoding: \C3\90\C2\9C\C3\90\C2\BE\C3\91\C2\81\C3\90\C2\BA\C3\90\C2\B2\C3\90\C2\B0.

UTF8-encoding this same string gives \D0\9C\D0\BE\D1\81\D0\BA\D0\B2\D0\B0, which is what ERP5 expects.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: for-mr-dodo
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7