rcgen icon indicating copy to clipboard operation
rcgen copied to clipboard

Do we have a complete example

Open szguoxz opened this issue 2 years ago • 4 comments

I am using quinn, want to do the basic things:

  1. generate a self-signed CA for server to use.
  2. sign a certificate for the client to use.
  3. Do we need to generate and seign a certificate for the server to use?

now we only have 1 example for 1. Can't find a complete example for #2 or #3..

szguoxz avatar Mar 14 '23 09:03 szguoxz

I more examples on using this library would be very nice. I'm currently searching around to figure out how to create a certificate pair with an existing CA.

Please add more examples on how to use this library.

Kerwood avatar Mar 24 '23 07:03 Kerwood

There's a minimal example in https://github.com/djc/sign-cert-remote from back when I first implemented CSR support.

djc avatar Aug 25 '23 08:08 djc

I built an example here - https://github.com/rustls/rcgen/pull/99 - but it became larger in scope than rcgen.

iamjpotts avatar Sep 27 '23 00:09 iamjpotts

I also built an example (somewhat abusing rustls-cert-gen, PRs welcome) that might be minimal enough to be useful:

https://github.com/OneVariable/rustls-self-signed-demo

jamesmunns avatar Jan 07 '25 15:01 jamesmunns