mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
fixed json secret key export (now export the whole encrypted blob, since only that blob is being used to parse the key). added support to import json secret keys
This commit is contained in:
@@ -35,6 +35,14 @@ include keys.cfg
|
||||
cmd = cat testkeyvjapub.json
|
||||
expect = /"Alicia"/
|
||||
</test>
|
||||
<test check-json-export-secret>
|
||||
cmd = $pcp -V vja -s -j -x a -O testkeyvjasec.json
|
||||
expect-file testkeyvjasec.json
|
||||
</test>
|
||||
<test check-json-export-secret-isjson>
|
||||
cmd = cat testkeyvjasec.json
|
||||
expect = /"Alicia"/
|
||||
</test>
|
||||
</test>
|
||||
|
||||
<test vjb>
|
||||
@@ -43,6 +51,21 @@ include keys.cfg
|
||||
cmd = $pcp -V vjb -K -I testkeyvjapub.json -j
|
||||
expect /added/
|
||||
</test>
|
||||
<test check-json-import-public-open>
|
||||
cmd = $pcp -V vjb -l
|
||||
expect = /Alicia/
|
||||
</test>
|
||||
</test>
|
||||
|
||||
<test vjc>
|
||||
<test check-json-import-secret>
|
||||
cmd = $pcp -V vjc -K -I testkeyvjasec.json -x a -j
|
||||
expect = /added/
|
||||
</test>
|
||||
<test check-json-import-secret-open>
|
||||
cmd = $pcp -V vjc -l
|
||||
expect = /Alicia/
|
||||
</test>
|
||||
</test>
|
||||
|
||||
<test vjtxt>
|
||||
|
||||
Reference in New Issue
Block a user