https://github.com/joshdk/cypress-ssl-repro
🔒 Repro for a Cypress.io ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue
https://github.com/joshdk/cypress-ssl-repro
Last synced: 4 months ago
JSON representation
🔒 Repro for a Cypress.io ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue
- Host: GitHub
- URL: https://github.com/joshdk/cypress-ssl-repro
- Owner: joshdk
- Created: 2018-02-20T23:10:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T23:29:47.000Z (over 7 years ago)
- Last Synced: 2025-01-16T13:17:36.422Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress.io SSL Repro
🔒 Repro for a [Cypress.io](https://www.cypress.io/) `ERR_SSL_VERSION_OR_CIPHER_MISMATCH` issue

## Running
Simply run `docker-compose up` in the root of this repository. An Nginx server will be launched at [`localhost:8443`](https://localhost:8443).
## Testing
### Passing Tests
The following Cypress test should pass when run. (As in not cause Cypress to display the `ERR_SSL_VERSION_OR_CIPHER_MISMATCH` error)
```js
describe('Passing Tests', function(){
it('Browse to "localhost" with visit()', function() {
cy.visit('https://localhost:8443')
})it('Browse to "localhost" with request()', function() {
cy.request('https://localhost:8443')
})it('Browse to "127.0.0.1" with visit()', function() {
cy.request('https://127.0.0.1:8443')
})it('Browse to "127.0.0.1" with visit() and get a 403', function() {
cy.visit('https://127.0.0.1:8443/403')
})
})
```### Failing Tests
The following Cypress test should (currently) fail, and cause Cypress to display the `ERR_SSL_VERSION_OR_CIPHER_MISMATCH` error.
```js
describe('Failing Tests', function(){
it('Browse to "127.0.0.1" with visit()', function() {
cy.visit('https://127.0.0.1:8443')
})it('Browse to "127.0.0.1" with visit() and get a 200', function() {
cy.visit('https://127.0.0.1:8443/200')
})it('Browse to "127.0.0.1" with visit() and get a 307', function() {
cy.visit('https://127.0.0.1:8443/307')
})
})
```### Regenerating SSL Certificate
I've committed them for convenience, but if you want to regenerate the SSL certificate, simply run `./make-cert.sh` in the root of this repository.