File tree Expand file tree Collapse file tree 4 files changed +188
-169
lines changed
core-build/gulp-core-build-serve
libraries/debug-certificate-manager/src Expand file tree Collapse file tree 4 files changed +188
-169
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class CertificateStore {
1717 }
1818
1919// @public
20- export function ensureCertificate(canGenerateNewCertificate : boolean , parentTask : ILogging ): ICertificate ;
20+ export function ensureCertificate(canGenerateNewCertificate : boolean , parentLogger : ILogging ): ICertificate ;
2121
2222// @public (undocumented)
2323export interface ICertificate {
@@ -39,8 +39,8 @@ export interface ILogging {
3939 logWarning: (string : any ) => void ;
4040}
4141
42- // @public (undocumented)
43- export function untrustCertificate(parentTask : ILogging ): boolean ;
42+ // @public
43+ export function untrustCertificate(parentLogger : ILogging ): boolean ;
4444
4545
4646// (No @packageDocumentation comment for this package)
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ The certificate is generated and self-signed with a unique private key and an at
121121it (Windows and macOS only). If the user does not agree to trust the certificate, provides invalid root
122122credentials, or something else goes wrong, the ` TrustCertTask ` will fail and the ` ServeTask ` will serve
123123with the default, non-trusted certificate. If trust succeeds, the certificate and the private key are
124- dropped in the ` .gcb -serve-data ` directory in the user's home folder in ` PEM ` format. On platforms
124+ dropped in the ` .rushstack -serve-data ` directory in the user's home folder in ` PEM ` format. On platforms
125125other than Windows and macOS, the certificate and key are always dropped in that directory, and the user
126126must trust the certificate manually.
127127
@@ -134,6 +134,6 @@ signature is found by its serial number and then the certificate is deleted from
134134signature. Regardless of whether the untrust succeeds or not, the certificate and key are deleted
135135from the user's home directory.
136136
137- To manually untrust the certificate, delete the files in the ` .gcb -serve-data ` directory under your
137+ To manually untrust the certificate, delete the files in the ` .rushstack -serve-data ` directory under your
138138home directory and untrust the certificate with the
139139` 73 1c 32 17 44 e3 46 50 a2 02 e3 ef 91 c3 c1 b9 ` serial number.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class CertificateStore {
2222 }
2323
2424 private _userProfilePath : string ;
25- private _gcbServeDataPath : string ;
25+ private _serveDataPath : string ;
2626 private _certificatePath : string ;
2727 private _keyPath : string ;
2828
@@ -84,10 +84,10 @@ export class CertificateStore {
8484 throw new Error ( 'Unable to determine the current user\'s home directory' ) ;
8585 }
8686
87- this . _gcbServeDataPath = path . join ( this . _userProfilePath , '.gcb -serve-data' ) ;
88- FileSystem . ensureFolder ( this . _gcbServeDataPath ) ;
87+ this . _serveDataPath = path . join ( this . _userProfilePath , '.rushstack -serve-data' ) ;
88+ FileSystem . ensureFolder ( this . _serveDataPath ) ;
8989
90- this . _certificatePath = path . join ( this . _gcbServeDataPath , 'gcb -serve.cer ' ) ;
91- this . _keyPath = path . join ( this . _gcbServeDataPath , 'gcb -serve.key' ) ;
90+ this . _certificatePath = path . join ( this . _serveDataPath , 'rushstack -serve.pem ' ) ;
91+ this . _keyPath = path . join ( this . _serveDataPath , 'rushstack -serve.key' ) ;
9292 }
9393}
You can’t perform that action at this time.
0 commit comments