Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example to demonstrate how to create a CA and a certificate signed with that CA. #79

Closed
rukai opened this issue Mar 25, 2022 · 3 comments

Comments

@rukai
Copy link
Contributor

rukai commented Mar 25, 2022

Add example to demonstrate how to create a CA and a certificate signed with that CA.

Basically I want to be able to generate the ca.crt/ca.key and redis.crt/redis.key files that this script generates https://github.com/redis/redis/blob/unstable/utils/gen-test-certs.sh#L5+L6
But I cant figure out how to from looking at the API, it seems like it should be possible though?

@est31
Copy link
Member

est31 commented Mar 25, 2022

@rukai yes, generating both the CA and certificate signed by the CA is possible.

@est31
Copy link
Member

est31 commented Mar 25, 2022

There is no example, but you can check test code for that setting: https://github.com/est31/rcgen/blob/bab6747b0c3a703112f2fe45f4c2ec144da0de7f/tests/webpki.rs#L212-L230

iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Oct 30, 2022
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Oct 30, 2022
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Oct 30, 2022
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Oct 31, 2022
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Oct 31, 2022
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 24, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 24, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 24, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 25, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 25, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 25, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 25, 2023
iamjpotts added a commit to iamjpotts/rcgen that referenced this issue Aug 28, 2023
@cpu
Copy link
Member

cpu commented Oct 11, 2023

I believe this can be considered resolved thanks to @tbro and #174.

@cpu cpu closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants