Cryptoballot: How to get it working?

Hi,

For a couple of days I try to get the port Cryptoballot working, I wonder if anybody here managed to get it work.

Start statement:
Code:
user1@vm1:/usr/ports/misc/cryptoballot % cryptoballot --key ~/mykey.key --ballotclerk http://localhost:8000 --ballotbox http://localhost:8001 admin create

I am strugling with the key and honestly don't know how cryptoballot wants the key to be.

When generating a key with:
sh:
openssl genrsa -out mykey.key 2048

The file created starts with the text:
-----BEGIN PRIVATE KEY

When executing the above start statement, the error is:
Code:
2024/07/14 11:44:49 Found PRIVATE KEY. Could not find RSA PRIVATE KEY block

When changing the text from -----BEGIN PRIVATE KEY to -----BEGIN RSA PRIVATE KEY, I receive following error:
Code:
user1@vm1:/usr/ports/misc/cryptoballot % cryptoballot --key ~/mykey.key --ballotclerk http://localhost:8000 --ballotbox http://localhost:8001 admin create
2024/07/14 11:38:24 x509: failed to parse private key (use ParsePKCS8PrivateKey instead for this key format). Could not decode Prviate Key PEM Block

Any help is appreciated.

Thanks in advance.
 
I have the impression the port is not complete, it's just the client or partial functionality. When checking the source of the port, in some of the files I see its is only picking certain parts of the github code.

Agree with you that I have to follow the quick start. I got some error on rust when it goes the checkout of git, something with the SSL certificate. But I have to pick up again.
 
Back
Top