get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/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  }