@sequencemedia/certificates 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1,3 @@
1
+ * text=auto
2
+ *.bat text eol=crlf
3
+ *.sh text eol=lf
package/ca-and-certs.bat CHANGED
@@ -1,14 +1,14 @@
1
- @echo off
2
-
3
- if "%~1" == "" (
4
- set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
5
- ) else (
6
- set SUBJ=%~1
7
- )
8
-
9
- md certificates > NUL
10
-
11
- call scripts\bat\certificate-authority-key-pem.bat
12
- call scripts\bat\certificate-authority-crt.bat
13
- call scripts\bat\localhost-csr.bat
14
- call scripts\bat\localhost-crt.bat
1
+ @echo off
2
+
3
+ if "%~1" == "" (
4
+ set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
5
+ ) else (
6
+ set SUBJ=%~1
7
+ )
8
+
9
+ md certificates > NUL
10
+
11
+ call scripts\bat\certificate-authority-key-pem.bat
12
+ call scripts\bat\certificate-authority-crt.bat
13
+ call scripts\bat\localhost-csr.bat
14
+ call scripts\bat\localhost-crt.bat
package/ca-and-certs.mjs CHANGED
@@ -1,5 +1,3 @@
1
- #!/bin/node
2
-
3
1
  import debug from 'debug'
4
2
  import os from 'node:os'
5
3
  import ip from 'ip'
package/certs.bat CHANGED
@@ -1,10 +1,10 @@
1
- @echo off
2
-
3
- if "%~1" == "" (
4
- set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
5
- ) else (
6
- set SUBJ=%~1
7
- )
8
-
9
- call scripts/bat/localhost-csr.bat
10
- call scripts/bat/localhost-crt.bat
1
+ @echo off
2
+
3
+ if "%~1" == "" (
4
+ set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
5
+ ) else (
6
+ set SUBJ=%~1
7
+ )
8
+
9
+ call scripts/bat/localhost-csr.bat
10
+ call scripts/bat/localhost-crt.bat
package/certs.mjs CHANGED
@@ -1,5 +1,3 @@
1
- #!/bin/node
2
-
3
1
  import debug from 'debug'
4
2
  import os from 'node:os'
5
3
  import ip from 'ip'
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "@sequencemedia/certificates",
3
- "version": "1.0.5",
4
- "description": "Generate root CA and self-signed certificates with OpenSSL",
5
- "type": "module",
6
- "author": {
7
- "name": "Jonathan Perry for Sequence Media Limited",
8
- "email": "sequencemedia@sequencemedia.net",
9
- "url": "http://sequencemedia.net"
10
- },
11
- "license": "ISC",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+ssh://git@github.com/sequencemedia/certificate-authority.git"
15
- },
16
- "homepage": "https://github.com/sequencemedia/certificates#readme",
17
- "bugs": {
18
- "url": "https://github.com/sequencemedia/certificates/issues"
19
- },
20
- "scripts": {
21
- "lint": "eslint . --ext cjs --ext mjs",
22
- "lint:fix": "npm run lint -- --fix",
23
- "ca-and-certs": "DEBUG=@sequencemedia/certificates:* node ca-and-certs.mjs",
24
- "certs": "DEBUG=@sequencemedia/certificates:* node certs.mjs",
25
- "prepare": "husky install"
26
- },
27
- "dependencies": {
28
- "debug": "^4.3.4",
29
- "fs-extra": "^11.1.0",
30
- "ip": "^1.1.8",
31
- "nconf": "^0.12.0",
32
- "os": "^0.1.2"
33
- },
34
- "devDependencies": {
35
- "@babel/cli": "^7.20.7",
36
- "@babel/core": "^7.20.12",
37
- "@babel/eslint-parser": "^7.19.1",
38
- "@babel/preset-env": "^7.20.2",
39
- "@sequencemedia/hooks": "^1.0.300",
40
- "core-js": "^3.27.1",
41
- "eslint": "^8.31.0",
42
- "eslint-config-standard": "^17.0.0",
43
- "eslint-plugin-import": "^2.26.0",
44
- "eslint-plugin-node": "^11.1.0",
45
- "eslint-plugin-promise": "^6.1.1",
46
- "husky": "^8.0.3"
47
- }
48
- }
1
+ {
2
+ "name": "@sequencemedia/certificates",
3
+ "version": "1.0.7",
4
+ "description": "Generate root CA and self-signed certificates with OpenSSL",
5
+ "type": "module",
6
+ "author": {
7
+ "name": "Jonathan Perry for Sequence Media Limited",
8
+ "email": "sequencemedia@sequencemedia.net",
9
+ "url": "http://sequencemedia.net"
10
+ },
11
+ "license": "ISC",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+ssh://git@github.com/sequencemedia/certificate-authority.git"
15
+ },
16
+ "homepage": "https://github.com/sequencemedia/certificates#readme",
17
+ "bugs": {
18
+ "url": "https://github.com/sequencemedia/certificates/issues"
19
+ },
20
+ "scripts": {
21
+ "lint": "eslint . --ext cjs --ext mjs",
22
+ "lint:fix": "npm run lint -- --fix",
23
+ "ca-and-certs": "DEBUG=@sequencemedia/certificates:* node ca-and-certs.mjs",
24
+ "certs": "DEBUG=@sequencemedia/certificates:* node certs.mjs",
25
+ "prepare": "husky install"
26
+ },
27
+ "dependencies": {
28
+ "debug": "^4.3.4",
29
+ "fs-extra": "^11.1.0",
30
+ "ip": "^1.1.8",
31
+ "nconf": "^0.12.0",
32
+ "os": "^0.1.2"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/cli": "^7.20.7",
36
+ "@babel/core": "^7.20.12",
37
+ "@babel/eslint-parser": "^7.19.1",
38
+ "@babel/preset-env": "^7.20.2",
39
+ "@sequencemedia/hooks": "^1.0.300",
40
+ "core-js": "^3.27.1",
41
+ "eslint": "^8.31.0",
42
+ "eslint-config-standard": "^17.0.0",
43
+ "eslint-plugin-import": "^2.26.0",
44
+ "eslint-plugin-node": "^11.1.0",
45
+ "eslint-plugin-promise": "^6.1.1",
46
+ "husky": "^8.0.3"
47
+ }
48
+ }
@@ -1,2 +1,2 @@
1
- @echo off
2
- openssl x509 -outform pem -in certificates\certificate-authority.pem -out certificates\certificate-authority.crt
1
+ @echo off
2
+ openssl x509 -outform pem -in certificates\certificate-authority.pem -out certificates\certificate-authority.crt
@@ -1,10 +1,10 @@
1
- @echo off
2
- if not "%~1" == "" (
3
- set SUBJ=%~1
4
- )
5
-
6
- if "%SUBJ%" == "" (
7
- set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
8
- )
9
-
10
- openssl req -x509 -nodes -new -sha512 -days 3650 -newkey rsa:4096 -keyout certificates\certificate-authority.key -out certificates\certificate-authority.pem -subj "%SUBJ%"
1
+ @echo off
2
+ if not "%~1" == "" (
3
+ set SUBJ=%~1
4
+ )
5
+
6
+ if "%SUBJ%" == "" (
7
+ set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
8
+ )
9
+
10
+ openssl req -x509 -nodes -new -sha512 -days 3650 -newkey rsa:4096 -keyout certificates\certificate-authority.key -out certificates\certificate-authority.pem -subj "%SUBJ%"
@@ -1,2 +1,2 @@
1
- @echo off
2
- openssl x509 -req -sha512 -days 365 -extfile certificates\localhost.ext -CA certificates\certificate-authority.crt -CAkey certificates\certificate-authority.key -CAcreateserial -in certificates\localhost.csr -out certificates\localhost.crt
1
+ @echo off
2
+ openssl x509 -req -sha512 -days 365 -extfile certificates\localhost.ext -CA certificates\certificate-authority.crt -CAkey certificates\certificate-authority.key -CAcreateserial -in certificates\localhost.csr -out certificates\localhost.crt
@@ -1,10 +1,10 @@
1
- @echo off
2
- if not "%~1" == "" (
3
- set SUBJ=%~1
4
- )
5
-
6
- if "%SUBJ%" == "" (
7
- set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
8
- )
9
-
10
- openssl req -new -nodes -newkey rsa:4096 -keyout certificates\localhost.key -out certificates\localhost.csr -subj "%SUBJ%"
1
+ @echo off
2
+ if not "%~1" == "" (
3
+ set SUBJ=%~1
4
+ )
5
+
6
+ if "%SUBJ%" == "" (
7
+ set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
8
+ )
9
+
10
+ openssl req -new -nodes -newkey rsa:4096 -keyout certificates\localhost.key -out certificates\localhost.csr -subj "%SUBJ%"
@@ -1,11 +1,11 @@
1
1
  #!/bin/bash
2
2
 
3
- if [ $# -eq 1 ]
3
+ if [ $# -eq 1 ];
4
4
  then
5
5
  SUBJ=$1
6
6
  fi
7
7
 
8
- if [ -z "$SUBJ" ]
8
+ if [ -z "$SUBJ" ];
9
9
  then
10
10
  SUBJ="/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net"
11
11
  fi
@@ -1,11 +1,11 @@
1
1
  #!/bin/bash
2
2
 
3
- if [ $# -eq 1 ]
3
+ if [ $# -eq 1 ];
4
4
  then
5
5
  SUBJ=$1
6
6
  fi
7
7
 
8
- if [ -z "$SUBJ" ]
8
+ if [ -z "$SUBJ" ];
9
9
  then
10
10
  SUBJ="/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net"
11
11
  fi