I have a private key used to authenticate a REST connection with CURL and OpenSSL, and I want to store the key in a file, so far I wrote the key in the code, and that is a bad idea from security point of view.
I saw PKCS#12 standar and so on, but no code example in C to make my own solution. I need guidance here for the best solution.