Rather a difficult one.
Set up the CompleteFTP to allow passwordWithKey for SFTP.
I am using Windows.
I generated a public/private key.
public key is imported
I can use 3rd party FTP Clients to connect to the server no problem.
I am using a development component called DART and using their SFTP solution.
I can connect to the server using username and password fine BUT when supplying the private key, it fails and I always get that PEM Authentication failed from the software when authenticating.
Looking at the CompleteFTPServer log, I get this but not sure where to turn. I am using the SAME private key as the one I give to a normal FTP Client (which works)
2011-05-24 12:33:36,041 DEBUG User [9:user] Did not verify key: Invalid PKCS1 padding 1
2011-05-24 12:33:36,041 ERROR PublicKeyAuthentication [9:user] Failed to verify signature
EnterpriseDT.Net.Ssh.Routrek.PKI.VerifyException: failed to verify RSA (multi)
at wfVSSF2sWcpyJNmiWZ5.aKfgdN2fKJHAxOrLShK.Dk6ezeAVFD(CSFeXbDtHuQ2C1ZvaL0[] , Byte[] , Byte[] )
at wfVSSF2sWcpyJNmiWZ5.aKfgdN2fKJHAxOrLShK.0eSe23FMk9(PublicKeyAlgorithm , Byte[] , Byte[] )
at lejGrv25rhW7k9YoBct.Cj2r6d2PgtQRCxykEEw.MHPtSxykef(PublicKeyAlgorithm , Byte[] , Byte[] )
at VFwbufMF2DQiO1MKn2a.4NBTulMO4sZ8OF34Pop.jjTi7XMkGhmDlfKKrFV.Authenticate(jLNh8HMBGcUgyP76DQY , SSH2DataReader )
clearly, I am sure the problem lays in the DART component but want to confirm what else I can do here to "make it work"? Any suggestions or tips?