'PFX certificate generation issue

I've generated crt and .key files to connect to protected resource. Curl with this combination of cert and key is working, but pfx cert which was generated using following command openssl pkcs12 -export -out pfx_file.pfx -in crt_file.crt -inkey key_file.key returns SSL_HANDSHAKE_ERROR, what can be root cause of the issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source