signalwire / libstirshaken

C library implementing STIR-shaken STI-SP AS/VS, STI-CA
MIT License
31 stars 23 forks source link

Buffer for key is too short #122

Closed mazhagiah closed 2 years ago

mazhagiah commented 2 years ago

I am using libstirshaken for Kamailio (v5.5) with self signed certificate. When I try to add "stirshaken_add_identity_with_key" I get "[error_code: 447] Buffer for key from file /tmp/cert/private.pem too short (2000 <= 3247)"

I tried with 1024 key as well but the buffer size (#define STIR_SHAKEN_PRIV_KEY_RAW_BUF_LEN 2000) is lesser than the private key file size

Can the buffer size can be increased? If yes, I can submit PR for the same.

Regards, Maharaja Azhagiah

mazhagiah commented 2 years ago

Issue with certificate generation. I am closing this issue.