title: Implementing HTTPS Server using Rustls with Hyper in Rust
body: <p>I am trying to implement implement HTTPS server using Rustls with Hyper, but am not able to get proper example of how to implement the same. And for that i have followed and tried example given on hyper-rustls repository <a href="https://github.com/ctz/hyper-rustls/blob/master/examples/server.rs" rel="noreferrer">here (Hyper Rustls server example)</a> </p>
  
  <p>It always gives this error</p>
  
  <pre><code>FAILED: error accepting connection: TLS Error: Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) }
  </code></pre>
  
  <p>I am completely new to Rust and hence don't know how to properly implement the HTTPS over Hyper. I also gone through question related to this <a href="https://users.rust-lang.org/t/use-hyper-server-with-tls/18535" rel="noreferrer">here</a></p>
  
  <p>But still not able to find the solution. If more information is required do let me know for the same.</p>