ValveSoftware / ValveSoftware/GameNetworkingSockets
Self signed certificates
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 9.9k
- Forks
- 749
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with isteamnetworkingsockets.h and the certtool output described in the issue, then trace SetCertificate() and STEAMNETWORKINGSOCKETS_HARDCODED_ROOT_CA_KEY. Clarify how self-signed certificates, private keys, and binary certificate data are configured, and provide a basic setup example or documentation that resolves these questions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation, networking, security
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100