diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-10-17 01:31:36 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-10-17 01:31:36 -0400 |
| commit | 90479b0ac1e990820e7a01ec58685b217f138d96 (patch) | |
| tree | 86338f46ce0b268bfda0d4cfdbb534b2cf1635ff /bookmark.sh | |
| parent | ff2defbd0114a957ac6c660b42b29c233d52ce15 (diff) | |
| download | cgi-bin-90479b0ac1e990820e7a01ec58685b217f138d96.tar.gz | |
stuff: update
Diffstat (limited to 'bookmark.sh')
| -rwxr-xr-x | bookmark.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bookmark.sh b/bookmark.sh index b8d6a0d..5c7ffef 100755 --- a/bookmark.sh +++ b/bookmark.sh @@ -2,10 +2,11 @@ # Place this script in your /cgi-bin to get your own bookmark writing script! # Have your host key put here for yourself. -authorized="SHA256:09CC327F3DDB21AE3BA4D0F38A6757236C8C2965A90539C640E14EB087955071 Gerbil@laptop" +authorized="SHA256:09CC327F3DDB21AE3BA4D0F38A6757236C8C2965A90539C640E14EB087955071 Gerbil@laptop +SHA256:DBF363CB8BB8CBCBEAC72D65ABF1D845319B404E856217166E1B6138FA8B83A8 gerbil@pp" # Authorization guard. -if ! test "$REMOTE_USER"; then +if ! test "$TLS_CLIENT_HASH"; then printf '60 Try again with a client cert!\r\n' exit elif ! test "$(printf "$authorized" | grep "^$TLS_CLIENT_HASH ")"; then |
