Skip to content

Commit c2e2bab

Browse files
committed
Place exports at top and rename cert path to be stack agnostic.
1 parent 9703625 commit c2e2bab

File tree

4 files changed

+188
-169
lines changed

4 files changed

+188
-169
lines changed

common/reviews/api/debug-certificate-manager.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
2323
export 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)

core-build/gulp-core-build-serve/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The certificate is generated and self-signed with a unique private key and an at
121121
it (Windows and macOS only). If the user does not agree to trust the certificate, provides invalid root
122122
credentials, or something else goes wrong, the `TrustCertTask` will fail and the `ServeTask` will serve
123123
with 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
125125
other than Windows and macOS, the certificate and key are always dropped in that directory, and the user
126126
must trust the certificate manually.
127127

@@ -134,6 +134,6 @@ signature is found by its serial number and then the certificate is deleted from
134134
signature. Regardless of whether the untrust succeeds or not, the certificate and key are deleted
135135
from 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
138138
home 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.

libraries/debug-certificate-manager/src/CertificateStore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)