samsapti.dev/content/keys.md

154 lines
5.3 KiB
Markdown
Raw Normal View History

2022-05-29 12:28:17 +00:00
---
2023-02-04 13:47:11 +00:00
title: My Cryptographic Keys
2022-05-29 12:28:17 +00:00
---
2022-05-29 14:23:26 +00:00
## PGP key
2022-05-29 12:28:17 +00:00
My public PGP key is the following:
```txt
pub ed25519/0x3FC96B835B918FC3 2022-05-28 [C] [expires: 2024-05-27]
Key fingerprint = 7D80 F5D8 4022 B8F5 E030 CC3E 3FC9 6B83 5B91 8FC3
uid [ unknown] Sam Al-Sapti <sam@sapti.me>
2022-12-28 19:57:38 +00:00
uid [ unknown] Sam Al-Sapti <sam@data.coop>
2022-05-29 12:28:17 +00:00
uid [ unknown] Sam Al-Sapti <sals@itu.dk>
2022-11-19 16:40:19 +00:00
sub ed25519/0xCBBBE7371E81C4EA 2022-05-28 [S] [expires: 2023-05-18]
2022-05-29 12:28:17 +00:00
Key fingerprint = 758F 1A17 C803 5FD9 3912 C9E2 CBBB E737 1E81 C4EA
2022-11-19 16:40:19 +00:00
sub cv25519/0x914289689CF45D4F 2022-05-28 [E] [expires: 2023-05-18]
2022-05-29 12:28:17 +00:00
Key fingerprint = 20D2 BBB4 63CA 6CB6 F295 F2BA 9142 8968 9CF4 5D4F
2022-11-19 16:40:19 +00:00
sub ed25519/0x899C7CF4B526656F 2022-05-28 [A] [expires: 2023-05-18]
2022-05-29 12:28:17 +00:00
Key fingerprint = FA9B 317E D1D3 4906 46CC D154 899C 7CF4 B526 656F
```
2023-04-23 17:37:42 +00:00
You can download it [here](/pgp.asc), via WKD or from your preferred keyserver.
2022-05-29 12:28:17 +00:00
<details>
<summary>
How I keep my private key safe
</summary>
### Master key
My private master key is only used for the following purposes:
2022-08-27 18:52:41 +00:00
- Add or revoke UIDs
- Add or revoke subkeys
- Change expiry for subkeys or the master key itself
- Sign other keys
2023-04-23 17:37:42 +00:00
My private master key is only ever accessed on an airgapped machine, with no
internet or wireless communication capabilities (all wireless components
physically removed), no camera or microphone and no persistent storage. This
airgapped machine is booted with the latest version of [Tails
OS](https://tails.boum.org). The master key is protected by a long and secure
passphrase and stored on an encrypted storage medium, which itself is stored
in a safe place.
2022-11-19 16:40:19 +00:00
### Subkeys
2023-04-23 17:37:42 +00:00
My subkeys are stored on an OpenPGP smartcard for daily use. The smartcard
makes sure that the local machine never has direct access to the keys. It is
protected by a pin-code and requires a physical touch on every cryptographic
operation.
### Revocation and expiry
2023-04-23 17:37:42 +00:00
I usually set my master key to be valid for 2 years at a time. I will always
extend it before the expiry date. The same goes for my subkeys, which are set
to be valid for 6 months at a time.
2023-04-23 17:37:42 +00:00
If my keys are ever compromised, I have a revocation certificate, stored in a
safe place, that I will publish to this website and various keyservers.
</details>
<details>
<summary>
Key signing policy
</summary>
### Certification levels
These are the certification levels I use to sign other keys, and the
requirements for each level.
#### Level 0: Generic verification (`sig`/`0x10`)
2022-11-19 16:40:19 +00:00
2023-04-23 17:37:42 +00:00
This certification level is used if I have somehow verified that you are in
control of the email address(es) of the UID(s) to be signed. No assertions
are made about your identity.
2022-11-19 16:40:19 +00:00
#### Level 1: No verification (`sig1`/`0x11`)
2022-11-19 16:40:19 +00:00
2023-04-23 17:37:42 +00:00
This certification level is used when I have not safely verified you as the
keyholder, but I merely *believe* that you own the key in question.
2022-11-19 16:40:19 +00:00
#### Level 2: Casual verification (`sig2`/`0x12`)
2022-11-19 16:40:19 +00:00
2023-04-23 17:37:42 +00:00
This certification level is used when I have verified your identity with at
least one form of photo ID (government-issued or equally secure), that your
identity matches that of the UID(s) to be signed, and that you are in control
of the email address(es) of the UID(s) to be signed.
2022-11-19 16:40:19 +00:00
#### Level 3: Extensive verification (`sig3`/`0x13`)
2022-11-19 16:40:19 +00:00
2023-04-23 17:37:42 +00:00
This certification level is used when I am *absolutely sure* that you are in
fact the keyholder. This means that either you are someone I know personally
and trust, or that someone I ultimately trust have notified me that you want
a signature and have given me your key fingerprint in a secure manner.
### Signing process
The signing process consists of 2 steps:
2023-04-23 17:37:42 +00:00
1) Verification will take place either in person or over video call. If we
meet in person, you will give me a physical copy of your key fingerprint. If
verification takes place over video call, you will give me your key
fingerprint verbally.
2) You will have to send me your public key from the email address associated
with one of the UIDs to be signed. The email has to be signed. I will then
sign the key and send it back to the same email address in encrypted form.
</details>
2022-05-29 14:23:26 +00:00
## SSH key
2022-05-29 12:28:17 +00:00
2023-04-23 17:37:42 +00:00
If you need to give me shell access to your server or similar, please use the
following public SSH key:
2022-05-29 12:28:17 +00:00
```txt
2023-03-14 18:11:35 +00:00
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
```
2023-04-23 17:37:42 +00:00
If your SSH server does not support FIDO2-protected SSH keys, use this fallback
key instead:
2023-03-14 18:11:35 +00:00
```txt
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
2022-05-29 12:28:17 +00:00
```
<details>
<summary>
PGP signed version
</summary>
```txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
2023-03-14 18:11:35 +00:00
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
-----BEGIN PGP SIGNATURE-----
2023-03-14 18:11:35 +00:00
iHUEARYKAB0WIQR1jxoXyANf2TkSyeLLu+c3HoHE6gUCZBC37AAKCRDLu+c3HoHE
6r2nAQCoBJvJnlUE8gv/vSRL+2YvuxDxNESKXnkdZ0RBW+USxgD9E9CE4QIFMj5U
+COZ61aYDmdNlcmytPviQ+g2k8SefQA=
=h3YT
-----END PGP SIGNATURE-----
```
</details>
2023-03-14 18:11:35 +00:00
You can download my SSH key [here](/ssh.pub), and my fallback key
[here](/ssh_fallback.pub).