mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 07:21:46 +00:00
Merge pull request #26 from gnh1201/certs_downloader
Add the local certificate downloader / 로컬 인증서 다운로더 추가
This commit is contained in:
commit
7fdf83be9d
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
openssl genrsa -out ca.key 2048
|
||||
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=php-httpproxy CA"
|
||||
openssl genrsa -out cert.key 2048
|
9
download_certs.bat
Normal file
9
download_certs.bat
Normal file
|
@ -0,0 +1,9 @@
|
|||
@echo off
|
||||
bitsadmin /transfer certsjob /download /priority normal https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/ca.crt %CD%\ca.crt
|
||||
bitsadmin /transfer certsjob /download /priority normal https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/ca.key %CD%\ca.key
|
||||
bitsadmin /transfer certsjob /download /priority normal https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/cert.key %CD%\cert.key
|
||||
|
||||
REM echo if you want generate a certificate...
|
||||
REM openssl genrsa -out ca.key 2048
|
||||
REM openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=php-httpproxy CA"
|
||||
REM openssl genrsa -out cert.key 2048
|
9
download_certs.sh
Normal file
9
download_certs.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
wget https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/ca.crt
|
||||
wget https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/ca.key
|
||||
wget https://pub-1a7a176eea68479cb5423e44273657ad.r2.dev/cert.key
|
||||
|
||||
# echo "if you want generate a certificate..."
|
||||
#openssl genrsa -out ca.key 2048
|
||||
#openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=php-httpproxy CA"
|
||||
#openssl genrsa -out cert.key 2048
|
Loading…
Reference in New Issue
Block a user