Похожие чаты

Hi there how would you guys implement TCP over TLS public

key transmission?
I mean I have a TCP server that is using a TLS cert(self-signed or with a legal CA). The clients doesn't know about the cert(public key). I've read some article that are hard coding the server's cert into the client's codebase. I don't think it's reasonable.
My question is that can I first transfer the cert over raw TCP and then wrap the connection with TLS?

2 ответов

4 просмотра

trying to reinvent HTTPS?

> hard coding the server's cert into the client's codebase I think it's a bad idea, since hard-coding stuff is usually bad practice (but I might be wrong in this particular case) > My question is that can I first transfer the cert over raw TCP and then wrap the connection with TLS? You can share the public key with anyone however you please, it’s totally safe as long as you keep your private key secret. You’d usually use it for encrypted key-exchange and continue with a symmetric key since symmetric encryption algorithms are way faster than their assymetric counterparts. Please, make sure you know how HTTPS works 🙂

Похожие вопросы

Обсуждают сегодня

А чем вам питонисты не угодили?😂
.
79
всем доброго времени суток! имею вопрос: как понять ТОЧНО, что на нексус производится атака или он перегружен? исходные данные: - Nexus OSS 3.67.1-01 на OrientDB - Total co...
Michael Kostelcev
11
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
or any website to buy prepaid card with xmr that's not trocador that's down?
Umbrella Party Partner
18
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
Добрый день, LO Writer, проблема с нумерацией таблиц (вставка названия). У меня два стиля нумерованных списка, один для основного текста (вида 1.1.1) другой доя приложений (ви...
Виктор
6
My assets the Oceans at Binance, its displaying passive and no automatically convert, this situation will change?
Nationalizze
8
Xem delist ho rha hai agr naa bhechu toh kya hoga after 1 july?
ABHI
27
Ты просто гитлеровскую эстетику плохо понимаешь. Он же всё под Цезаря делал. А это как бы запрещённый приём в политике. Пиджаки они зачем все носят? Чтобы показать что они тип...
Ivan Kropotkin
4
Карта сайта