Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 122
    • Merge requests 122
  • 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
  • nexedi
  • slaposslapos
  • Merge requests
  • !1547

Merged
Created Mar 13, 2024 by Titouan Soulard@tsoulardDeveloper

recipe/certificate_authority: use UTF-8 for CA certificate

  • 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
Reviewer
Request review from
Time tracking
Source branch: for-mr-dodo
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7