https://github.com/socketry/sus-fixtures-openssl
https://github.com/socketry/sus-fixtures-openssl
fixtures openssl ruby sus testing
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/socketry/sus-fixtures-openssl
- Owner: socketry
- License: mit
- Created: 2023-08-26T10:59:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T09:25:27.000Z (over 1 year ago)
- Last Synced: 2025-02-13T20:23:41.988Z (8 months ago)
- Topics: fixtures, openssl, ruby, sus, testing
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Sus::Fixtures::OpenSSL
Provides a convenient fixture for setting up client and server SSL sockets.
[](https://github.com/ioquatix/sus-fixtures-openssl/actions?workflow=Test)
## Installation
``` bash
$ bundle add sus-fixtures-openssl
```## Usage
``` ruby
include Sus::Fixtures::OpenSSL::HostCertificatesContextit 'can create a secure connection' do
# Use `server_context` to create a server socket:
server_socket = OpenSSL::SSL::SSLSocket.new(socket, server_context)
# Use `client_context` to create a client socket:
client_socket = OpenSSL::SSL::SSLSocket.new(socket, client_context)
end
```## Contributing
We welcome contributions to this project.
1. Fork it.
2. Create your feature branch (`git checkout -b my-new-feature`).
3. Commit your changes (`git commit -am 'Add some feature'`).
4. Push to the branch (`git push origin my-new-feature`).
5. Create new Pull Request.### Developer Certificate of Origin
This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
### Contributor Covenant
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.