error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’ 原因: 由于默认使用了OpenSSL版本是1.1x,OpenSSL 1.1.x对一些API做了改动,因此出现错误信息。 openssl 1.1.x 版本,导致的API不一致引起。 解决: 直接安装openssl1.0版本,Debian 系: sudo apt install libssl1.0-dev