Gauche > Archives > 2017/01/03

2017/01/03 00:05:39 UTCjames
#
Is there a way to pass ssl certs to the secure-agent used by the http client calls?
2017/01/03 00:19:18 UTCshiro
#
Good question. The underlying library can handle it, but I don't think I've implemented Scheme API for that. You want to send client certs for authentication?
2017/01/03 00:21:24 UTCjames
#
I've got a use case where an API requires me to send a self signed certificate as part of the login call. I'm not really familiar with AxTLS but it looks like it can handle it so I thought I'd ask.
2017/01/03 00:33:04 UTCshiro
#
Actually, there's tls-load-object Scheme API, so it's in rfc.tls. We need a hook in rfc.http that adds call to tls-load-object on created tls.
#
If you want to try out, currently start-secure-agent in rfc.http creates <tls> object and immediately go ahead to connect. You might want to try calling tls-load-object before tls-connect.
2017/01/03 00:39:10 UTCjames
#
Great thanks! I'll try that out shortly.