# Certificate Commands
Certificate operation commands are designed to help user managing their private keys and public keys with algorithm ECC-SEPC256K1.
All certificate operation commands are offline command.
# Derive PKCS12 Certificate
# Usage
Usage: miyabi-cli derivepkcs12 [Options]
Options:
--help Show help information
-k|--key <hex> [Mandatory] Private key
-d|--directory <path> [Mandatory] Path to the directory to store PKCS#12 file
-f|--file <name> [Mandatory] PKCS#12 file name (extension is automatically added)
-p|--password <string> Password if required
# Functionality
Create a PKCS12 certification according to the input private key.
-k
should specify the ByteString of the private key.
# Example
$ ./miyabi-cli derivepkcs12 -k 01 -d 'c:\' -f derive
# Generate PKCS12 Certificate
# Usage
Usage: miyabi-cli generatepkcs12 [Options]
Options:
--help Show help information
-d|--directory <path> [Mandatory] Path to the directory to store PKCS#12 file
-f|--file <name> [Mandatory] PKCS#12 file name
-p|--password <string> Password if required
# Functionality
Generate a PKCS12 certificate with a random private key.
# Example
$ ./miyabi-cli generatepkcs12 -d c:\ -f derive
# Parse PKCS12 Certificate
# Usage
Usage: miyabi-cli parsepkcs12 [Options]
Options:
--help Show help information
-f|--file <path> [Mandatory] PKCS#12 file path
-p|--password <string> Password if required
# Functionality
Get the private key from PKCS12 certificate.
# Example
$ ./miyabi-cli parsepkcs12 -f 0.p12
8b1e72d59e152909ade35860e9306f59902da7c40e2dfa027b6058dd8cbe44c0
# Get Public Key
# Usage
Usage: miyabi-cli getpublickey [Options] <Private Key>
Arguments:
Private Key Private key in hex
Options:
--help Show help information
# Functionality
Return the public key of the given private key.
# Example
$ ./miyabi-cli getpublickey 01
0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
# Generate Multiple Signature Command
# Usage
Usage: miyabi-cli generatemultisig [Options] <Public keys>
Arguments:
Public keys All keys (N)
Options:
--help Show help information
-r|--required <number> [Mandatory] Required number of keys (M)
# Functionality
Returns a multisig address for verifying the threshold signature of the provided (N) Public Keys
up to the threshold r
(M) provided.
# Example
$ ./miyabi-cli generatemultisig 0286887e5a0d26844f403d0fdae6435e465ba7a8311429ac5443e65b74a1174352 0225c6b6c4225139c34746a3d12c798d9edab2ceb0149e2abe79812a04b9f20a91 -r 1
90012c6fa808b154fd2ce2a2089a9a527eb277f417bd51c61231e6300c52a7623826e79ae0dd6d192ad2