#Advice for how to code software that will send files from local PC to remote server

13 messages · Page 1 of 1 (latest)

mellow saddle
#

I am trying to make software that will take hardcoded file (for now) and send it to remote server where server is IPv4 or domain name.
Program also needs to use hardcoded TLS key so it can use own encryption for HTTPS since it will send file via HTTPS.
I understand that basically program needs to take file, read it, put it in buffer then send it via HTTPS.

My question is, what libraries should I use since I am not ready to code it from 0. Also, how to hardcode TLS key and is there any library for it?

karmic steppe
#

I would expect that standard HTTP libraries have the capability to use custom trusted TLS certs. Maybe try reqwest and axios/axum/other HTTP servers.

#

In fact, your web server should be fine, it shouldn't care that the cert it's using isn't trusted.

karmic steppe
# mellow saddle I bumped onto hyper:

Hyper is a low-level library. If you're just looking to get an application off the ground, I'd recommend something higher level (look through the README).

strange viper
#

Is this program used for building something like a c2 ? Or are you trying to build some kind of e2e encryption system ?

mellow saddle
mellow saddle
strange viper