add gpg page
This commit is contained in:
parent
fda9d22b83
commit
4cd27199ab
3 changed files with 69 additions and 1 deletions
59
gpg.gmi
Normal file
59
gpg.gmi
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
Looking forward to your message.
|
||||
|
||||
I recently upgraded from RSA to ECC.
|
||||
|
||||
=> /gemlog/post/gpg-upgrade-from-rsa-to-ecc Read about upgrade here.
|
||||
|
||||
# Key
|
||||
|
||||
Here is my public key.
|
||||
|
||||
```
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mDMEaOt4iBYJKwYBBAHaRw8BAQdAxxV8SyI6Fhk4+f9F7sceppIKHQhnvoq0dz9b
|
||||
D3zaoT20MFRyYXZpcyBTaGVhcnMgKG5ldyBlY2Mga2V5KSA8dEB0cmF2aXNzaGVh
|
||||
cnMuY29tPoiZBBMWCgBBFiEE6rFNhAX39s/+iya8W5HrKmyjuJ8FAmjreIgCGwMF
|
||||
CQPCZwAFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQW5HrKmyjuJ/CCwD/
|
||||
dB+XRG3be7WPukxZayml3dhI1B/YvjiAadnQKtm7uKgA/1VE7ORwdxRRAhvG2gIR
|
||||
mPSG3MCXhrtM8rnyb5RlHWYFiQEzBBABCAAdFiEEsDmbFV8yRe1R4cCf1MLk36uL
|
||||
q/gFAmjrf4YACgkQ1MLk36uLq/i+NQf+KOSbYgjLEZg4uQabGa8YYkDFlTBCVk09
|
||||
ziD9V+ImwUbUD4fmS0HO4yeDNrFOlENq2j6jpvH2i3gDDu4t2wMHd3dleVm+85DJ
|
||||
WHTsDnUkiAi6TN9+bFVagxQtjhB3QUX2PJ+DhE7G5XRqargIU98NuH2rgAdzUj98
|
||||
bW2vcwVnjzmNTSmaBsGCUzhsf7GTx5maGZCFYo3sKX0KRVnEunzJ2lmFoEB+5VNb
|
||||
BU4QXg1ZsAGiJRuLcOGwgZB8G4L7lrneofAjBFejGj7TLpR5hOx+UbLUFIzp77e3
|
||||
ZHkaBr4ZgiM3g/ihinqDjAfK9PAk2JgXHJhWGCLflqy2VxxX/c7V1rg4BGjreIgS
|
||||
CisGAQQBl1UBBQEBB0Bw69gCqjqix5EjCiCjdoYLFJ+QOZZVSaRZhHNDiuvQVwMB
|
||||
CAeIfgQYFgoAJhYhBOqxTYQF9/bP/osmvFuR6ypso7ifBQJo63iIAhsMBQkDwmcA
|
||||
AAoJEFuR6ypso7if2hgBAO5qUTgNCBakC2f5Vvc/uii/CQFjyosynFME41hbMmms
|
||||
AQDQqsAb/q361g+oAIH9xgrz3lkJNkzTUJP+lcBSf9RNALgzBGjrftMWCSsGAQQB
|
||||
2kcPAQEHQO8e+WbUWf4AW3sA+l7JxOqXcw7UhS01XPnqD34mBj3SiPUEGBYKACYW
|
||||
IQTqsU2EBff2z/6LJrxbkesqbKO4nwUCaOt+0wIbAgUJA8JnAACBCRBbkesqbKO4
|
||||
n3YgBBkWCgAdFiEE0hzRiDfmqINzIWCTy5vxkQ8/dGkFAmjrftMACgkQy5vxkQ8/
|
||||
dGloEgEAgkqYyNxWxFWoLvjuXETKjvxXgMgHA0Bzt/y3Xn+uutUBAIgsb3HrdTA2
|
||||
3CcpN29PNb3nm6faCFldAIAyLlNCi0gMhQsA/jCy3sqCdLo1S5d4oNIOAWfxBhNc
|
||||
yKDvXk2CrKKBx4ezAQD261+GaAHaXa0kFTso+QstnGmWcmZssyt+MsEU1C+aAA==
|
||||
=bEIb
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
```
|
||||
|
||||
|
||||
# Tutorial
|
||||
|
||||
New to GPG? Here is a guide on how to use it. The following instructions are for macOS. Linux should be similar.
|
||||
|
||||
Copy the above key to your clipboard. Then import it to your GPG keyring.
|
||||
|
||||
```
|
||||
$ pbpaste > travis-pubkey.asc
|
||||
$ gpg --import travis-pubkey.asc
|
||||
```
|
||||
|
||||
Write your awesome message in `msg.txt` then encrypt the message and copy the encrypted message to your clipboard.
|
||||
|
||||
```
|
||||
$ gpg --encrypt --armor --recipient t@travisshears.com msg.txt
|
||||
$ pbcopy < msg.txt.asc
|
||||
```
|
||||
|
||||
Paste that in your email and BOOM top secret communication.
|
||||
4
home.gmi
4
home.gmi
|
|
@ -15,7 +15,9 @@ Welcome to my Gemini capsule. Est 2025.09.
|
|||
|
||||
This capsule is my playground for experimenting with text based content and interacting with folks in gemspace.
|
||||
|
||||
Want to get in touch? Shoot me an email at t [at] travisshears.com
|
||||
Want to get in touch? Shoot me an email at t [at] travisshears.com If you want to be sure only my eyes read it encrypt it with my public key.
|
||||
|
||||
=> /gpg My gpg key is available here.
|
||||
|
||||
My personal website:
|
||||
=> https://travisshears.com
|
||||
|
|
|
|||
7
main.go
7
main.go
|
|
@ -26,6 +26,9 @@ import (
|
|||
//go:embed home.gmi
|
||||
var homePageContent string
|
||||
|
||||
//go:embed gpg.gmi
|
||||
var gpgPageContent string
|
||||
|
||||
type MainHandler struct {
|
||||
blog microblog.Handler
|
||||
gemlog gemlog.Handler
|
||||
|
|
@ -61,6 +64,10 @@ func (h MainHandler) ServeGemini(w gemini.ResponseWriter, req *gemini.Request) {
|
|||
}
|
||||
|
||||
switch req.URL.Path {
|
||||
|
||||
case "/gpg":
|
||||
w.WriteStatusMsg(gemini.StatusSuccess, "text/gemini")
|
||||
w.WriteBody([]byte(gpgPageContent))
|
||||
case "/":
|
||||
w.WriteStatusMsg(gemini.StatusSuccess, "text/gemini")
|
||||
var content strings.Builder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue