![]() ![]() Generate SSL certificate and key $ openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout ~/.ssh/vsftpd.key -out ~/.ssh/vsftpd.crtĪdd the generated certificate to the Keychain Access app $ security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.ssh/vsftpd.crt Working with git-ftp on macOS client and vsftpd on Linux server ![]() How to fix it, please visit the web page mentioned above.ĭue to curl on macOS working with the database on the Keychain Access app the instructions differer from those needed for Linux, I documented the instructions here * SSL certificate problem: self signed certificateĬurl: (60) SSL certificate problem: self signed certificateĬurl failed to verify the legitimacy of the server and therefore could notĮstablish a secure connection to it. * TLSv1.2 (OUT), TLS alert, unknown CA (560): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * CAfile: /usr/local/etc/openssl/cert.pem * Cipher selection: successfully set certificate verify locations: * Connected to SERVER-IP (SERVER-IP) port 21 (#0) It works for FileZilla but with curl it seems I can't re-use the same certificate, I downloaded the certificate file from the server and am useing it like so $ curl -v -cert ~/.ssh/vsftpd.pem -user MYUSER:PASSWORD ftp://SERVER-IP Rsa_private_key_file=/etc/ssl/private/vsftpd.pem Rsa_cert_file=/etc/ssl/private/vsftpd.pem $ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem Following this tutorial I managed to add FTPS connectivity to the server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |