jenkinsci / publish-over-ftp-plugin

https://plugins.jenkins.io/publish-over-ftp/
21 stars 33 forks source link

[JENKINS-37089] How to configure "Publish over FTP plugin", I got "534 Policy requires SSL" error. #62

Open jira-importer opened 8 years ago

jira-importer commented 8 years ago

I have installed Publish over FTP plugin for Jenkins. There is checkbox named Use FTP over TLS which i have already checked. One another text-box named Trusted Certificate, I have set below text (certificate text) here.

----BEGIN CERTIFICATE----
MIIE3TCCA8WgAwIBAgISESHdIpSQWOgXMNo3XneAFNF9MA0GCSqGSIb3DQEBCwUA
...................
...................
...................
...................
x7Yd2scxpGQbjq7F4EYd+kiZ9OUJWRqYnDGhRUyPDFitzxbs9LyfB/eclGiJcdSB
aA==
----END CERTIFICATE----

Also,I have added certification using below command.

keytool -import -alias ca -file base64.cer -keystore cacerts -storepass changeit

I am using Jenkins ver. 2.13. Every time it show below error when I run the job. My username and password are 100% correct. Don't know what I did wrong here.

Building in workspace C:\Program Files (x86)\Jenkins\workspace\Test
FTP: Connecting from host [CIPL-6PC198]
FTP: Connecting with configuration [Invoice] ...
220 Microsoft FTP Service
AUTH TLS
234 AUTH command ok. Expecting TLS Negotiation.
FTP: Logging in, command printing disabled
FTP: Logged in, command printing enabled
CWD /
250 CWD command successful.
TYPE I
200 Type set to I.
CWD /
250 CWD command successful.
CWD bin
250 CWD command successful.
PASV
227 Entering Passive Mode (45,63,4,160,195,109).
STOR myfile.txt
534 Policy requires SSL.
FTP: Disconnecting configuration [Invoice] ...
ERROR: Exception when publishing, exception message [Could not write file. Server message: [534 Policy requires SSL.
]]
Build step 'Send build artifacts over FTP' changed build result to UNSTABLE
Finished: UNSTABLE

Can you suggest me what type configuration required or I missed out.


Originally reported by bhaveshsoft1, imported from: How to configure "Publish over FTP plugin", I got "534 Policy requires SSL" error.
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
jira-importer commented 6 years ago

slide_o_mix:

I will try and setup a server with TLS/SSL and see if I can replicate this issue.