App Flow certificate rejected

Hi, I am trying to add apple certificates to ionic app flow. I add adhoc distribution certificate, valid password, prosivioning profile for this certificate but get an error: There was an error while submitting your credentials. Certificate, Provisioning Profile, or Certificate password invalid.

I use the same certificate for building app on my local machine.

Could anyone please help me locate the problem?

Thank you