Search
Preparing search index...
The search index is not available
symbol-bootstrap
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
symbol-bootstrap
CertificateService
Class CertificateService
Hierarchy
CertificateService
Index
Constructors
constructor
Properties
file
System
Service
params
runtime
Service
CA_
CERTIFICATE_
FILE_
NAME
METADATA_
VERSION
NODE_
CERTIFICATE_
FILE_
NAME
Methods
create
Cert
Commands
create
Certificate
run
run
Open
Ssl
Command
should
Generate
Certificate
will
Certificate
Expire
create
Der
File
get
Certificates
to
Ans1
Constructors
constructor
new
Certificate
Service
(
logger
:
Logger
, accountResolver
:
AccountResolver
, params
:
CertificateParams
)
:
CertificateService
Parameters
logger:
Logger
accountResolver:
AccountResolver
params:
CertificateParams
Returns
CertificateService
Properties
Private
Readonly
file
System
Service
file
System
Service
:
FileSystemService
Protected
Readonly
params
params
:
CertificateParams
Private
Readonly
runtime
Service
runtime
Service
:
RuntimeService
Static
CA_
CERTIFICATE_
FILE_
NAME
CA_
CERTIFICATE_
FILE_
NAME
:
string
= 'ca.cert.pem'
Static
Private
Readonly
METADATA_
VERSION
METADATA_
VERSION
:
1
= 1
Static
NODE_
CERTIFICATE_
FILE_
NAME
NODE_
CERTIFICATE_
FILE_
NAME
:
string
= 'node.crt.pem'
Methods
Private
create
Cert
Commands
create
Cert
Commands
(
renew
:
boolean
, caCertificateExpirationInDays
:
number
, nodeCertificateExpirationInDays
:
number
)
:
string
Parameters
renew:
boolean
caCertificateExpirationInDays:
number
nodeCertificateExpirationInDays:
number
Returns
string
Private
create
Certificate
create
Certificate
(
renew
:
boolean
, presetData
:
CertificateConfigPreset
, certFolder
:
string
, name
:
string
, providedCertificates
:
NodeCertificates
, metadataFile
:
string
, randomSerial
?:
string
)
:
Promise
<
void
>
Parameters
renew:
boolean
presetData:
CertificateConfigPreset
certFolder:
string
name:
string
providedCertificates:
NodeCertificates
metadataFile:
string
Optional
randomSerial:
string
Returns
Promise
<
void
>
run
run
(
presetData
:
CertificateConfigPreset
, name
:
string
, providedCertificates
:
NodeCertificates
, renewMode
:
RenewMode
, customCertFolder
?:
string
, randomSerial
?:
string
)
:
Promise
<
boolean
>
Parameters
presetData:
CertificateConfigPreset
name:
string
providedCertificates:
NodeCertificates
renewMode:
RenewMode
Optional
customCertFolder:
string
Optional
randomSerial:
string
Returns
Promise
<
boolean
>
Private
run
Open
Ssl
Command
run
Open
Ssl
Command
(
symbolServerImage
:
string
, cmd
:
string
, certFolder
:
string
, ignoreErrors
:
boolean
)
:
Promise
<
{
stderr
:
string
;
stdout
:
string
}
>
Parameters
symbolServerImage:
string
cmd:
string
certFolder:
string
ignoreErrors:
boolean
Returns
Promise
<
{
stderr
:
string
;
stdout
:
string
}
>
Private
should
Generate
Certificate
should
Generate
Certificate
(
metadataFile
:
string
, providedCertificates
:
NodeCertificates
)
:
Promise
<
boolean
>
Parameters
metadataFile:
string
providedCertificates:
NodeCertificates
Returns
Promise
<
boolean
>
will
Certificate
Expire
will
Certificate
Expire
(
symbolServerImage
:
string
, certFolder
:
string
, certificateFileName
:
string
, certificateExpirationWarningInDays
:
number
)
:
Promise
<
{
expirationDate
:
string
;
willExpire
:
boolean
}
>
Parameters
symbolServerImage:
string
certFolder:
string
certificateFileName:
string
certificateExpirationWarningInDays:
number
Returns
Promise
<
{
expirationDate
:
string
;
willExpire
:
boolean
}
>
Static
create
Der
File
create
Der
File
(
privateKey
:
string
, file
:
string
)
:
void
Parameters
privateKey:
string
file:
string
Returns
void
Static
get
Certificates
get
Certificates
(
stdout
:
string
)
:
CertificatePair
[]
Parameters
stdout:
string
Returns
CertificatePair
[]
Static
to
Ans1
to
Ans1
(
privateKey
:
string
)
:
string
Parameters
privateKey:
string
Returns
string
Exports
Certificate
Service
constructor
file
System
Service
params
runtime
Service
CA_
CERTIFICATE_
FILE_
NAME
METADATA_
VERSION
NODE_
CERTIFICATE_
FILE_
NAME
create
Cert
Commands
create
Certificate
run
run
Open
Ssl
Command
should
Generate
Certificate
will
Certificate
Expire
create
Der
File
get
Certificates
to
Ans1
Generated using
TypeDoc