loading of keys - WeOnlyDo Discussion board

loading of keys (wodFtpDLX / wodFtpDLX.NET)

by Scot Styer, Monday, April 07, 2014, 19:03 (3883 days ago)

i'm using powerbuilder with wodftpdlx
I'm trying to load up a key file

ole_cer = CREATE oleobject
ole_cer.ConnectToNewObject("WeOnlyDo.Certificate.1")
ole_cer.loadkey(f_path)
ole_ftp.object.hostname = ftp_site
ole_ftp.object.login = 'DOCCTS'
ole_ftp.object.certificate = ole_cer
ole_ftp.object.authentication = 2
ole_ftp.object.transfermode = 0
ole_ftp.object.blocking = 0
ole_ftp.object.protocol = 1
ole_ftp.object.compression = 6
ole_ftp.object.passive = 1
ole_ftp.object.port = port

1 of the key files loads fine
the other one kicks out an error
I don't know a lot about keyfiles / structure

could you tell me why
is it because I need to be using the Private key, and not the public one?

(doesn't work)
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20120625"
AAAAB3NzaC1yc2EAAAABJQAAAQEArCagIrRSc+Wq+aFjyw4RsgwbbDvBLeLPxpzy
MzceByeADxAh7C3g5rd1OTEtIxJV4J27Id8Ha0SaffE5rqI4+kMT91AwSfGgnbfj
pEaVzTzKTZYaVdLOP8sK+5GObyQm34iABQLvpVx7JKf63/peGQACSykEXoppRaF/
7kkKQRfhsd2HC5GIatZYJmplD9CEpGvTM3iBc9jAhNcwuW7AKyUxb15yZup0+cLH
MbW/dp391M23NSn7F7xfQ5DqZgtdeHFaPf7PG+uWBO4UPYGuuvo7mL77Q1QXz/9I
4jpNgM7Vstj22e3F6t6cw54YdoKh5v3OlpeNTztbEqbZeERJZQ==
---- END SSH2 PUBLIC KEY ----


(did work)
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDZDE8lLgwRsSjN+zvNa/mAU/vystnThgUseDD1E4ipbTA7LjSI
CNlaLn+JvJACUMJMVF+qcKTU2XvqK4Vjp6FxryIfbiJJg5idDSxnoCAA92FdosRT
G++PNVU7R/1U7hywSwM6NOuC3sa4wYcv5fPh529I14VKYwdLyfS/oNeptwIBIwKB
gQCnb+VIkTyCrTy8KDVylR+O4bO7OYN3SiE/j+tAt0wq7dS/8HGqxP9xdFPCBn24
pLMk8KGSHGHmBtvvKOM+P3yJei88q3VsgcRv81k5qwbkFTSqpj4zwShFNulRm5xD
QgHOKTAYB95gJypFl7xjxV43JjHkxGFZhx8iIkdMr+nUIwJBAPXTfognZAfTCSTP
wLtbgo0bS0uBJh45zrPa3h4vZkV0NxZd2Q8cvX7ru7Bal7Dss46UB1td0PuioMJA
km/6v40CQQDiB+n0wX7Al4eG+/PXqJkfYJ1szJ4MzWbIhM1zDNnX1YpnjPYlFs14
8AsmjbgPQTK1kRjvXW2lRcqiYTuPMotTAkEA7s1zmjTk1GabKxL1vVGUw5bbbess
V+BiZZLJJKMS5GJEJFsqoPdY/vOgYiweVBkjdI/MoeYbeBpTBdhTvTy6EwJBAK5d
4F251s8VzvMaIoHLNEtnyeY3cpwpbIwOrR49HRQ3BF6Cr0Eu2QWF+fkrf1w5nCWq
clJAwkxLyDQfH1E1nq0CQDcQOZmSLgc8jIA2O8isLH9vu6187VROQd2MJMPioL9w
Gyod8gypG3OK5nevz3VMEShxlQhZtyjNiVc3n4KPyWI=
-----END RSA PRIVATE KEY-----


Complete thread:

 

  • loading of keys - Scot Styer, 2014-04-07, 19:03 [*]