github.com/nats-io/nats-server/v2@v2.11.0-preview.2/test/configs/tls_curve_pref.conf (about)

     1  # Simple TLS config file
     2  
     3  listen: 127.0.0.1:5443
     4  
     5  https: 11522
     6  
     7  tls {
     8    # Server cert
     9    cert_file: "./configs/certs/server-cert.pem"
    10    # Server private key
    11    key_file:  "./configs/certs/server-key.pem"
    12    # Specified time for handshake to complete
    13    timeout: 2
    14    curve_preferences: [
    15  		"CurveP256"
    16    ]
    17  }
    18  
    19  authorization {
    20    user:     derek
    21    password: boo
    22    timeout:  1
    23  }