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:
I am strugling with the key and honestly don't know how cryptoballot wants the key to be.
When generating a key with:
The file created starts with the text:
-----BEGIN PRIVATE KEY
When executing the above start statement, the error is:
When changing the text from -----BEGIN PRIVATE KEY to -----BEGIN RSA PRIVATE KEY, I receive following error:
Any help is appreciated.
Thanks in advance.
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.