nf-interpreter
nf-interpreter copied to clipboard
Add GetDevicePublicKey
Description
Motivation and Context
- Following nanoframework/System.Net#265
How Has This Been Tested?
Screenshots
Types of changes
- [ ] Improvement (non-breaking change that improves a feature, code or algorithm)
- [ ] Bug fix (non-breaking change which fixes an issue with code or algorithm)
- [x] New feature (non-breaking change which adds functionality to code)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Config and build (change in the configuration and build system, has no impact on code or features)
- [ ] Dev Containers (changes related with Dev Containers, has no impact on code or features)
- [x] Dependencies (update dependencies and changes associated, has no impact on code or features)
- [ ] Documentation (changes or updates in the documentation, has no impact on code or features)
Checklist
- [x] My code follows the code style of this project (only if there are changes in source code).
- [ ] My changes require an update to the documentation (there are changes that require the docs website to be updated).
- [ ] I have updated the documentation accordingly (the changes require an update on the docs in this repo).
- [x] I have read the CONTRIBUTING document.
- [x] I have tested everything locally and all new and existing tests passed (only if there are changes in source code).
Summary by CodeRabbit
-
New Features
- Added a method to retrieve the device's public key in raw byte array format.
- Expanded SSL certificate handling capabilities with new functions for public key extraction.
-
Version Update
- Updated System.Net assembly version to support new functionality.
-
Technical Improvements
- Introduced a new X.509 certificate data structure for handling raw data.
- Enhanced infrastructure for public key extraction across different platforms.
- Organized enum types into more appropriate header files for improved maintainability.
Okay, I somehow did something wrong while rebasing this to fix the force push conflict and messed up the whole commit history and lost my own while at it. sigh Anyways, fixed it.
@aromaa Is this PR still valid given all the changes?
This needs a bit updating to stub the new platforms and a bit of updating. I'm planning to do that in the future as I will be needing to update my devices soon for the new Azure certificate so the branch will be up to date after that.
Actually there wasn't much else to do as the new platforms are already falling back to the existing stubs. Fixed few copy & paste mistakes. Still seems to work just fine on my ESP32.