Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions publicKeys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
export namespace PublicKeys {
// test and prod are the public half of 2048 bit RSA key pairs.

Check warning on line 2 in publicKeys.ts

View workflow job for this annotation

GitHub Actions / lint

Delete ´·´
// create a new key pair by
// openssl genrsa -out private.key && openssl rsa -in private.key -pubout -out public.key
// strip headers and line breaks and place into test.

// testName and prodName are "RSA" concatenated with substring(44) of the public key,
// non-letters removed, then substring(0, 4)
// echo "RSA"$(cat public.key | head -2 | tail -1 | cut -c44- | sed 's/[^[:alpha:]]//g' | cut -c-4)

Check warning on line 10 in publicKeys.ts

View workflow job for this annotation

GitHub Actions / lint

Delete ´↹´
export const test =
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9LwPP/B8VdWLI0bOHkkAczNIJ0bUqXI+2bXH34DRT7w7efgfEtsLCQsF2AjmEXyYyRSC1nZOB0eggM/9tzhuPfa17j9e6Ob2ugxuIY0MHCPsTBm2l0T7GEJIPYBIwaVwkTEwv6hao7EBH5OV51UOHSpnuc9YsBYl68s5cMoN5REVj3ybzFZ71jWu3GLeY+w2YIH9/km2sKDDpTdzWrmtsVZMo7j+ffm01xhCWHqrSSatESUgR545Bn6AuIuU+X+PHPNHJDwIecgtjg538VF9PvYaAbGC/2wZR8kKn/WBiI8l967EuA+nioUYl2tGWgRBeNA0bb5zR64iq/q1CSwJEwIDAQAB"
export const testName = "RSAALwP"
Expand Down
Loading