Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Self signed certificates

Aperta
#384 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Inizia da isteamnetworkingsockets.h e dall’output di certtool descritto nell’issue, quindi segui SetCertificate() e STEAMNETWORKINGSOCKETS_HARDCODED_ROOT_CA_KEY. Chiarisci come vengono configurati i certificati autofirmati, le chiavi private e i dati binari dei certificati, e fornisci un esempio di configurazione di base o della documentazione che risolva questi dubbi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm trying to figure out how to use self signed certificates to prevent MITM. I managed to create a cert via the certtool (the output includes other metadata and shows the cert in base64 - why doesn't it just export to a binary file as that's what SetCertificate() expects anyway? Or am I wrong here?) and then hardcoding the key with STEAMNETWORKINGSOCKETS_HARDCODED_ROOT_CA_KEY (this is required because it's self signed right?). But now it's complaining about it missing a private key. I can't really find how to set this to be honest. It seems like the private key could either be part of the cert (I can't find how to embed this) or setting it manually, but I can't find the API for this.

Any guidance is much appreciated. Perhaps some documentation on the subject wouldn't be a bad idea either. The documentation in isteamnetworkingsockets.h is pretty good in general, but there's very little about setting up encryption using self signed keys, which is pretty necessary for any serious game. Unless I'm just looking in the wrong place.

A basic example on how to set this up would be absolutely fantastic.

Lingua principale
C++
Stelle
10k
Fork
747
Merge medio
5g 19h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ValveSoftware/GameNetworkingSockets

Tutte le issue di ValveSoftware/GameNetworkingSockets

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.