-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathx.bat
More file actions
31 lines (24 loc) · 699 Bytes
/
Copy pathx.bat
File metadata and controls
31 lines (24 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
set DOMAIN=helper-support.xyz
echo Checking OpenSSL...
where openssl >nul 2>&1
if %errorlevel% neq 0 (
echo OpenSSL not found. Installing via PowerShell...
powershell -ExecutionPolicy Bypass -File "%~dp0install_openssl.ps1"
)
echo Generating certificate...
openssl req -x509 -nodes -days 365 ^
-newkey rsa:2048 ^
-keyout %DOMAIN%.key ^
-out %DOMAIN%.crt ^
-subj "/CN=%DOMAIN%"
if %errorlevel% neq 0 (
echo Failed to create certificate.
pause
exit /b 1
)
echo Done:
echo %DOMAIN%.key
echo %DOMAIN%.crt
pause
https://helper-support.xyz/p5/f2.php?k=MlEyNVY5V1FKNDQzSDBNSTY2UVk=&i=OTg4NTEwMjEwMzU4MTAzMTA2ODAxMDkxMw==&j=MTU=&b=0&o=0