@sequencemedia/certificates 1.0.2 → 1.0.4
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/ca-and-certs.bat +8 -10
- package/ca-and-certs.sh +1 -1
- package/certs.bat +3 -3
- package/certs.sh +1 -1
- package/package.json +1 -1
- package/scripts/bat/certificate-authority-crt.bat +1 -1
- package/scripts/bat/certificate-authority-key-pem.bat +8 -3
- package/scripts/bat/localhost-crt.bat +1 -1
- package/scripts/bat/localhost-csr.bat +8 -3
package/ca-and-certs.bat
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
@echo off
|
2
2
|
|
3
|
-
if
|
4
|
-
set SUBJ
|
3
|
+
if "%~1" == "" (
|
4
|
+
set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
|
5
5
|
) else (
|
6
|
-
set SUBJ
|
6
|
+
set SUBJ=%~1
|
7
7
|
)
|
8
8
|
|
9
|
-
|
10
|
-
md certificates
|
11
|
-
endlocal
|
9
|
+
md certificates > NUL
|
12
10
|
|
13
|
-
call scripts
|
14
|
-
call scripts
|
15
|
-
call scripts
|
16
|
-
call scripts
|
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.sh
CHANGED
package/certs.bat
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
@echo off
|
2
2
|
|
3
|
-
if
|
4
|
-
set SUBJ
|
3
|
+
if "%~1" == "" (
|
4
|
+
set SUBJ=/C=UK/ST=England/L=Greenwich/O=Sequence Media Limited/CN=Sequence Media/emailAddress=sequencemedia@sequencemedia.net
|
5
5
|
) else (
|
6
|
-
set SUBJ
|
6
|
+
set SUBJ=%~1
|
7
7
|
)
|
8
8
|
|
9
9
|
call scripts/bat/localhost-csr.bat
|
package/certs.sh
CHANGED
package/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
@echo off
|
2
|
-
openssl x509 -outform pem -in certificates
|
2
|
+
openssl x509 -outform pem -in certificates\certificate-authority.pem -out certificates\certificate-authority.crt
|
@@ -1,5 +1,10 @@
|
|
1
1
|
@echo off
|
2
|
-
if not
|
3
|
-
set SUBJ
|
2
|
+
if not "%~1" == "" (
|
3
|
+
set SUBJ=%~1
|
4
4
|
)
|
5
|
-
|
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
1
|
@echo off
|
2
|
-
openssl x509 -req -sha512 -days 365 -extfile certificates
|
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,5 +1,10 @@
|
|
1
1
|
@echo off
|
2
|
-
if not
|
3
|
-
set SUBJ
|
2
|
+
if not "%~1" == "" (
|
3
|
+
set SUBJ=%~1
|
4
4
|
)
|
5
|
-
|
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%"
|