commit 485305f8fd37ce6677039178ac8ba74ce6418562
parent c3157555cf61b03d16824ff58bcf542220443500
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 23 Apr 2023 02:16:37 -0700
update instructions
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/cmd/torsign/main.go b/cmd/torsign/main.go
@@ -13,9 +13,10 @@ import (
func main() {
var privKeyFile string
+ var fileName string
flag.StringVar(&privKeyFile, "s", "hs_ed25519_secret_key", "tor private key file")
+ flag.StringVar(&fileName, "c", "certificate.txt", "certificate to sign")
flag.Parse()
- fileName := os.Args[1]
msg, err := os.ReadFile(fileName)
if err != nil {
panic(err)
diff --git a/pkg/web/public/views/pages/links-claim-instructions.gohtml b/pkg/web/public/views/pages/links-claim-instructions.gohtml
@@ -5,7 +5,7 @@
<div class="container mb-5">
<ul>
<li>Download the certificate file you want to sign</li>
- <li>Use the following Golang script to sign the file <code>./torsign -s /path/to/hs_ed25519_secret_key certificate.txt</code></li>
+ <li>Use the following Golang script to sign the file <code>./torsign -s /path/to/hs_ed25519_secret_key -c certificate.txt</code></li>
<li>Alternatively, you can use python <code>python3 torsign.py -s /path/to/hs_ed25519_secret_key certificate.txt</code></li>
</ul>
<div>