FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lhttps/src/CertificateSigningRequest.php at master · madeny/lhttps · GitHub
madeny
/
lhttps
Public
Notifications
You must be signed in to change notification settings
Fork
17
Star
176
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
lhttps
/
src
/
CertificateSigningRequest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (20 loc) · 607 Bytes
Breadcrumbs
lhttps
/
src
/
CertificateSigningRequest.php
Copy path
File metadata and controls
29 lines (20 loc) · 607 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
namespace
Madeny
\
lhttps
;
class
CertificateSigningRequest{
protected
$
error
;
protected
$
output
;
function
__construct
(
$
path
,
$
domain
)
{
exec
(
"
openssl x509 -req -in
{
$
path
}
/csr/
{
$
domain
}
.csr -CA
{
$
path
}
/csr/root.pem -CAkey
{
$
path
}
/keys/root.key -CAcreateserial -out
{
$
path
}
/live/
{
$
domain
}
.ssl.crt -days 500 -sha256 -extfile
{
$
path
}
/cnf/v3.ext -passin pass:none 2>>
{
$
path
}
/logs/log
"
,
$
output
,
$
error
);
$
this
->
error
=
$
error
;
$
this
->
output
=
$
output
;
}
public
function
getError
()
{
return
$
this
->
error
;
}
public
function
setError
(
$
error
)
{
$
this
->
error
=
$
error
;
}
}
Back
|
FazBrowse Home
|
New Git URL