wolfssl-examples/pk/test_cert_and_private_keypair
Andras Fekete 4c2f96ff64 Clean up wolfSSL path variable name 2024-04-04 13:28:23 -04:00
..
Makefile Clean up wolfSSL path variable name 2024-04-04 13:28:23 -04:00
README.md Quick example app to check if a cert and key match 2020-05-27 14:27:35 -06:00
test-cert-privkey-pair.c Remove unused variables 2021-05-04 10:23:35 -06:00

README.md

An app to quickly check if a cert and private key are a pair.

Run with test-cert-privkey-pair yourkey.pem yourcert.pem to test your key and cert pair.

NOTE: Load key first then cert.

EXAMPLE 1: Improper load ./test-cert-privkey-pair ~/Downloads/wolfssl/certs/server-ecc-rsa.pem ~/Downloads/wolfssl/certs/server-cert.pem Failed to load PRIVATE KEY /Users/kalebhimes/clean-wolfssl/certs/server-ecc-rsa.pem, error was: 0

EXAMPLE 2: Correct load, not a pair ./test-cert-privkey-pair ~/Downloads/wolfssl/certs/client-key.pem ~/Downloads/wolfssl/certs/server-cert.pem This key and cert are not a pair Error: 0

EXAMPLE 3: Correct load, is a pair ./test-cert-privkey-pair ~/Downloads/wolfssl/certs/client-key.pem ~/Downloads/wolfssl/certs/client-cert.pem Congratulations, this private key and cert are a pair!