Skip to content

Commit 8baa07f

Browse files
authored
Merge branch 'main' into main
2 parents 95426d3 + 0050f61 commit 8baa07f

14 files changed

Lines changed: 225 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Open Cypress
2+
command: "npx cypress open"
3+
tags:
4+
- cypress
5+
description: "Open the Cypress Test Runner."
6+
source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress"
7+
author: cypress-dx
8+
shells: []
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Open Cypress With a Mobile Viewport
2+
command: "npx cypress open --config viewportWidth={{width}},viewportHeight={{height}}"
3+
tags:
4+
- cypress
5+
description: "Open the Cypress Test Runner with a Mobile Viewport."
6+
arguments:
7+
- name: width
8+
description: The width of the viewport in pixels
9+
default_value: 375
10+
- name: height
11+
description: The height of the viewport in pixels
12+
default_value: 667
13+
source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress"
14+
author: cypress-dx
15+
shells: []
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Run Cypress Headless
2+
command: "npx cypress run"
3+
tags:
4+
- cypress
5+
description: "Run Cypress in Headless Mode"
6+
source_url: "https://docs.cypress.io/guides/guides/command-line#cypress-run"
7+
author: cypress-dx
8+
shells: []
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run Cypress Headless With a Mobile Viewport
2+
command: "npx cypress run --config viewportWidth={{width}},viewportHeight={{height}}"
3+
tags:
4+
- cypress
5+
description: "Run the Cypress Test Runner with a Mobile Viewport in Headless Mode"
6+
arguments:
7+
- name: width
8+
description: The width of the viewport in pixels
9+
default_value: 375
10+
- name: height
11+
description: The height of the viewport in pixels
12+
default_value: 667
13+
source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress"
14+
author: cypress-dx
15+
shells: []
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Add password to private RSA key using AES256
3+
command: "openssl rsa -aes256 -in {{in_key}} -out {{out_pass_key}}"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Add password to private RSA key using AES256."
8+
arguments:
9+
- name: in_key
10+
description: "Input RSA key without password."
11+
default_value: in.key
12+
- name: "out_pass_key"
13+
description: "Output RSA key protected with password."
14+
default_value: "out.key"
15+
author: Petr Stepan (Deworn)
16+
author_url: "https://github.com/deworn"
17+
shells: []

specs/ssl/check_web_certs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Check website certificate
3+
command: "openssl s_client -connect {{url}}:443 -showcerts"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Check certificate of specific web site or URL."
8+
arguments:
9+
- name: url
10+
description: "URL to check."
11+
default_value: ""
12+
author: Petr Stepan (Deworn)
13+
author_url: "https://github.com/deworn"
14+
shells: []

specs/ssl/convert_der_to_pem.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Convert certificate from DER to PEM
3+
command: "openssl x509 -inform der -outform pem -in {{in_der_cert}} -out {{out_pem_cert}}"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Convert certificate in DER binary encoding to PEM format (base64)"
8+
arguments:
9+
- name: in_der_cert
10+
description: "Input certificate file in DER encoding. Files usually have .der or .cer extensions."
11+
default_value: in_cert.der
12+
- name: out_pem_cert
13+
description: "Output certificate file which will be in PEM format. Files usually have .pem, .crt, or .cer extensions."
14+
default_value: out_cert.pem
15+
author: Petr Stepan (Deworn)
16+
author_url: "https://github.com/deworn"
17+
shells: []

specs/ssl/convert_pem_to_der.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Convert certificate from PEM to DER
3+
command: "openssl x509 -inform pem -outform der -in {{in_pem_cert}} -out {{out_der_cert}}"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Convert certificate in PEM format (base64) to DER binary encoding"
8+
arguments:
9+
- name: in_pem_cert
10+
description: "Input certificate file in PEM format. Files usually have .pem, .crt, or .cer extensions."
11+
default_value: in_cert.pem
12+
- name: out_der_cert
13+
description: "Output certificate file which will be DER encoded. Files usually have .der or .cer extensions."
14+
default_value: out_cert.der
15+
author: Petr Stepan (Deworn)
16+
author_url: "https://github.com/deworn"
17+
shells: []
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Convert certificate from PEM to PKCS#12
3+
command: "openssl pkcs12 -export -out {{out_pkcs12_cert}} -in {{in_pem_cert}} -inkey {{in_pem_private_key}} -certfile {{in_pem_cacert}}"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Convert certificate in PKCS#12 container format (private key included) to PEM format (base64)"
8+
arguments:
9+
- name: in_pem_cert
10+
description: "Input certificate file in PEM format. Files usually have .pem, .crt, or .cer extensions."
11+
default_value: in_cert.pem
12+
- name: in_pem_private_key
13+
description: "Input private key file (in PEM format) which fits in_pem_cert. Files usually have .key extension."
14+
default_value: in_private.key
15+
- name: in_pem_cacert
16+
description: "Input certificate file (or file bundle) of Certification Authority (in PEM format) which signed in_pem_cert file. Files usually have .pem, .crt, or .cer extensions."
17+
default_value: cacert.pem
18+
- name: out_pkcs12_cert
19+
description: "Output file which will be in PKCS#12 container format with private key. Files usually have .pfx or .p12 extensions."
20+
default_value: out_cert.pfx
21+
author: Petr Stepan (Deworn)
22+
author_url: "https://github.com/deworn"
23+
shells: []
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Convert certificate from PKCS#12 to PEM
3+
command: "openssl pkcs12 -in {{in_pkcs12_cert}} -out {{out_pem_cert}} -nodes"
4+
tags:
5+
- ssl
6+
- openssl
7+
description: "Convert certificate in PKCS#12 container format (private key included) to PEM format (base64)"
8+
arguments:
9+
- name: in_pkcs12_cert
10+
description: "Input certificate file in PKCS#12 container format. Files usually have .pfx or .p12 extensions."
11+
default_value: in_cert.pfx
12+
- name: out_pem_cert
13+
description: "Output certificate file which will be in PEM format. Files usually have .pem, .crt, or .cer extensions."
14+
default_value: out_cert.pem
15+
author: Petr Stepan (Deworn)
16+
author_url: "https://github.com/deworn"
17+
shells: []

0 commit comments

Comments
 (0)