Skip to content

Commit 555f58d

Browse files
committed
Remove unused certs and change auth on server cert
Signed-off-by: worksofliam <[email protected]>
1 parent f1616a1 commit 555f58d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/debug/certificates.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ export async function setup(connection: IBMi) {
116116
`openssl genrsa -out debug_service.key 2048`,
117117
`openssl req -new -key debug_service.key -out debug_service.csr -subj '/CN=${host}'`,
118118
`openssl x509 -req -in debug_service.csr -signkey debug_service.key -out debug_service.crt -days 1095 -sha256 -sha256 -req -extfile <(printf "${extFileContent}")`,
119-
`openssl pkcs12 -export -out debug_service.pfx -inkey debug_service.key -in debug_service.crt -password pass:${host}`
119+
`openssl pkcs12 -export -out debug_service.pfx -inkey debug_service.key -in debug_service.crt -password pass:${host}`,
120+
`rm debug_service.key debug_service.csr`,
121+
`chmod 444 debug_service.pfx`
120122
];
121123

122124
const directory = getRemoteCertDirectory(connection);

0 commit comments

Comments
 (0)