From af49f90d0aedeb6559d41903aba4dfb47f7b722f Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 4 Aug 2024 18:27:29 -0400 Subject: [PATCH] Fix key generation Generated keys can now be imported into gpg. --- keys/customer-pub.gpg | Bin 6857 -> 4899 bytes keys/generate-keys.go | 107 +++++++++++++++------------------------- keys/internal.gpg | Bin 6857 -> 0 bytes keys/private/.gitignore | 1 + keys/public/.gitignore | 1 + server.go | 16 ++++-- 6 files changed, 55 insertions(+), 70 deletions(-) delete mode 100644 keys/internal.gpg create mode 100644 keys/private/.gitignore create mode 100644 keys/public/.gitignore diff --git a/keys/customer-pub.gpg b/keys/customer-pub.gpg index 2ee1f9d1b3cb8f29756eff938679c483a7dfef21..6bebca7cfcbd30100ee19c04f346800b99ef21f3 100644 GIT binary patch literal 4899 zcma);bySqy+Qx?ghVB&UW(WzTOF+62!J#{cp@;5}l2p1yx?||>VNj3|l}02blm_|m zjrD!&JMUTN+-p70zV_bt+H3!Dt!w`P001Kz8UUy!XJ`w!E8E)Z{NLYi{b%6>1JV9a zK>z^uJ^%=yE!g1dbrl*{z#9;HE#?+fC#SGyX&=E{HziCHBeg%oJcEH#s;^w zAH7?a{JnQqXaIZw0GM~DX#SW30T_Rb|L^zr4KjfQ7jpE#{LGGF zN5;x0tdNzGB`xv`@vq}m&>}ZqcuuR2idAd2VyB9_bkaFHcT zl1wiY+`vlCv#kvx?e~&7G2wJ7Hn&ZTi%s3zGkD;1_0UkGRBYB-%vD;2HrRh6_)CgB zEhY2%xvG^5{)**HcuHYyk-jh8Y|LMgiDI+8|9hhRGuu_2rZgu6sB-T*ExkYy_{Dp#nQ6x6+pd7zy zCUk>NaTfo8J7DsALn3e6YhY;AHjcbGdHaI`D{{;F3zM0&gdy1uA7r^QtwdS7UYDo% zk7)|osrIM(1pRS-?@$}(+FBn!AjQr$lQiDRpf3n76&5FC-A16j{%Pt!ZuMhur(+jZ zs`6yMZNhCAUUS)}uW14C|B)&lN7-Z&c-BFPO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~}N<PeG>tRnD@8!Em@)=yC@s~0W6ogp!JBL{*S00=N z1cq~McS&oDDe`>SsHU>${W!y<+)ybPI4X^i{P~A_61qX(w0EaTm`1&CY1;&H&{+tF zVM=f}I$K-bMx3)AW%u{gLPmvMJwW5eiM{W$9+W)@jQ^4Jro|h_YdZO!$r8h1uwCEx zbH*y}56%-(lGHu$(7I3ih0|;^+V!s2w;xMLWUpR}(;`l)8(EgAQBtW90{<9Fj^&VX VNx^49X08g79)&29XsA){e*u(qAwU2C diff --git a/keys/private/.gitignore b/keys/private/.gitignore new file mode 100644 index 0000000..1053c0d --- /dev/null +++ b/keys/private/.gitignore @@ -0,0 +1 @@ +*.asc diff --git a/keys/public/.gitignore b/keys/public/.gitignore new file mode 100644 index 0000000..1053c0d --- /dev/null +++ b/keys/public/.gitignore @@ -0,0 +1 @@ +*.asc diff --git a/server.go b/server.go index 5876370..7b0ca03 100644 --- a/server.go +++ b/server.go @@ -122,6 +122,7 @@ func (s *Server) handler_privatekey(w http.ResponseWriter, r *http.Request) { func (s *Server) findPrivKey(search string) *openpgp.Entity { for _, k := range s.PrivateKeys { + fmt.Printf("%X\n", k.PrimaryKey.KeyId) for _, id := range k.Identities { if strings.ToLower(id.UserId.Name) == search { return k @@ -133,6 +134,10 @@ func (s *Server) findPrivKey(search string) *openpgp.Entity { } for _, sub := range k.Subkeys { + fmt.Printf("%#v\n", sub) + if sub.PrivateKey == nil { + continue + } if fmt.Sprintf("%x", sub.PrivateKey.KeyId) == search { return k } @@ -186,12 +191,15 @@ func handler_default(w http.ResponseWriter, r *http.Request) { func run() error { sv, err := NewServer( []string{ - "keys/gpg-generated/cust-a.pub", - "keys/gpg-generated/cust-b.pub", - "keys/gpg-generated/internal-public.asc", + //"keys/gpg-generated/cust-a.pub", + //"keys/gpg-generated/cust-b.pub", + //"keys/gpg-generated/internal-public.asc", + "keys/public/Customer.asc", + "keys/public/Company.asc", }, []string{ - "keys/gpg-generated/internal-private.asc", + //"keys/gpg-generated/internal-private.asc", + "keys/private/Company.asc", }, ) if err != nil {