diff --git a/hack/ticketgen/README.md b/hack/ticketgen/README.md new file mode 100644 index 0000000000..b514f87d2b --- /dev/null +++ b/hack/ticketgen/README.md @@ -0,0 +1,8 @@ +1. Create keys + `bash generate_keys.sh` +2. Generate onboarding ticket: + `bash ./ticketgen.sh key.pem > onboarding_ticket.txt` + +key.pem --> Stays with the user. +pubkey.pem --> Goes to the provider. +onboarding_ticket.txt --> Goes to the consumer. diff --git a/hack/ticketgen/generate_keys.sh b/hack/ticketgen/generate_keys.sh new file mode 100644 index 0000000000..33a83801db --- /dev/null +++ b/hack/ticketgen/generate_keys.sh @@ -0,0 +1,2 @@ + openssl genrsa -out key.pem 4096 + openssl rsa -in key.pem -out pubkey.pem -outform PEM -pubout