goharbor / website

Source for the main Harbor website
https://goharbor.io
Apache License 2.0
33 stars 168 forks source link

Update configure-https.md #508

Closed kozhin closed 8 months ago

kozhin commented 10 months ago

Fix CA common name field to avoid "error yourdomain.com.crt: verification failed"

If we create CA and server certificate with the same CN, on some setups we may get the following error:

error 18 at 0 depth lookup: self signed certificate
error yourdomain.com.crt: verification failed

This may lead to inoperability of other systems working with the Harbor registry via HTTPS. To solve this issue CN field for CA certificate should be different from CN of the server certificate.

The best practice for creating CAs states the following: The certification authority (CA) name should never be the same as the server's computer name (NetBIOS or DNS / hostname)

Ref: https://social.technet.microsoft.com/wiki/contents/articles/16160.considerations-for-certification-authority-ca-names.aspx

kozhin commented 8 months ago

Any blockers here?