adminssl.txt 923 B

12345678910111213141516171819202122232425262728
  1. The server.cfg server_ssl_key_file and admin.cfg sslkey_file variable are to
  2. point to a file containing a "PRIVATE KEY" and one or more "CERTIFICATE"
  3. sections. ["TRUSTED CERTIFICATE"?] A depth zero self-signed certificate can
  4. be generated using `openssl req -x509 -nodes -newkey rsa`.
  5. The server.cfg sslkeys_path must point to a directory which contains "PUBLIC
  6. KEY" files for the corresponding allowed client certificate(s). These can be
  7. generated per certificate using `openssl rsa -in client.private.key -pubout`.
  8. To generate subjectAltNames:
  9. cat >local.conf <<-EOF
  10. [v3_req]
  11. # For "real" requests
  12. subjectAltName=@alt
  13. [v3_ca]
  14. # For CAs and self-signed certificates
  15. subjectAltName=@alt
  16. [alt]
  17. DNS.1 = kopano.example.com
  18. DNS.2 = localhost
  19. IP.1 = 127.0.0.1
  20. EOF
  21. openssl req ... -config <(cat /etc/ssl/openssl.cnf local.conf) \
  22. -subj /CN=CouldBeAnything
  23. openssl.cnf is the distro-provided default configuration.