It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting fatal error: “certificate verification …” while trying to use ftp on bitbucket pipeline


I've created a ci pipeline for my ReactJS project on bitbucket. Everything goes well till step 2 while pipeline tries to deploy the build on my Bluehost VPS. Here is log

INFO: Enabling debug mode.
INFO: Starting FTP deployment to
+ run_pipe
+ info 'Starting FTP deployment to'
+ echo -e '\e[36mINFO: Starting FTP deployment to\e[0m'
+ set +e
+ lftp -u 'username,password' -e 'mirror --delete-first -vvv -R / path' server-domain
mirror: Fatal error: Certificate verification: subjectAltName does not match ‘’ (0F:4A:6E:B0:30:BE:B2:93:79:CB:4D:0F:A2:7B:2F:7E:54:71:13:C1)
+ set -e
+ [[ 0 == \0 ]]
+ success 'Deployment finished.'
+ echo -e '\e[32m✔ Deployment finished.\e[0m'
+ exit 0
✔ Deployment finished.

I've already tried creating an lftp.conf file with set ssl:check-hostname false; but it didn't work.

1 answer

0 votes

Hi @waleed bin khalid . This is weird. The certificate for your host looks valid. It looks like lftp fails to fetch this certificate for some reason. Are you able to connect with lftp you your server manually?

@Alexander Zhukov Yes I'm able to connect with it using FileZilla 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,041 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you