|
1 month ago | |
---|---|---|
.. | ||
src | 1 month ago | |
Cargo.toml | 1 month ago | |
README.md | 1 month ago | |
build.rs | 1 month ago | |
generate_certs.sh | 1 month ago |
This crate is a grpc client and server to control and manage a cdk mint. This crate exposes a server complnate that can be imported as library compontant, see its usage in cdk-mintd
. The client can be used as a cli by running cargo r --bin cdk-mint-cli
.
The server can be run with or without certificate authentication. For running with authentication follow the below steps to create certificates.
This guide explains how to generate the necessary TLS certificates for securing gRPC communication between client and server.
The script generates the following certificates and keys:
All certificates are generated in PEM format, which is commonly used in Unix/Linux systems.
The script will create the following files:
ca.key
- Certificate Authority private keyca.pem
- Certificate Authority certificateserver.key
- Server private keyserver.pem
- Server certificateclient.key
- Client private keyclient.pem
- Client certificategenerate_certs.sh
Make it executable:
chmod +x generate_certs.sh
Run the script:
./generate_certs.sh
The script includes verification steps to ensure the certificates are properly generated:
# Verify server certificate
openssl verify -CAfile ca.pem server.pem
# Verify client certificate
openssl verify -CAfile ca.pem client.pem