@@ -1135,83 +1135,86 @@ public sealed class CertificateManagerEventSource : EventSource
1135
1135
[ Event ( 86 , Level = EventLevel . Warning , Message = "Failed to trust the certificate in .NET: {0}." ) ]
1136
1136
internal void UnixDotnetTrustException ( string exceptionMessage ) => WriteEvent ( 86 , exceptionMessage ) ;
1137
1137
1138
- [ Event ( 87 , Level = EventLevel . Warning , Message = "Clients that validate certificate trust using OpenSSL will not trust the certificate ." ) ]
1139
- internal void UnixOpenSslTrustFailed ( ) => WriteEvent ( 87 ) ;
1138
+ [ Event ( 87 , Level = EventLevel . Verbose , Message = "Trusted the certificate in .NET ." ) ]
1139
+ internal void UnixDotnetTrustSucceeded ( ) => WriteEvent ( 87 ) ;
1140
1140
1141
- [ Event ( 88 , Level = EventLevel . Verbose , Message = "Trusted the certificate in OpenSSL." ) ]
1142
- internal void UnixOpenSslTrustSucceeded ( ) => WriteEvent ( 88 ) ;
1141
+ [ Event ( 88 , Level = EventLevel . Warning , Message = "Clients that validate certificate trust using OpenSSL will not trust the certificate ." ) ]
1142
+ internal void UnixOpenSslTrustFailed ( ) => WriteEvent ( 88 ) ;
1143
1143
1144
- [ Event ( 89 , Level = EventLevel . Warning , Message = "Failed to trust the certificate in the NSS database in '{0}'. This will likely affect the {1} family of browsers ." ) ]
1145
- internal void UnixNssDbTrustFailed ( string path , string browser ) => WriteEvent ( 89 , path , browser ) ;
1144
+ [ Event ( 89 , Level = EventLevel . Verbose , Message = "Trusted the certificate in OpenSSL ." ) ]
1145
+ internal void UnixOpenSslTrustSucceeded ( ) => WriteEvent ( 89 ) ;
1146
1146
1147
- [ Event ( 90 , Level = EventLevel . Verbose , Message = "Trusted the certificate in the NSS database in '{0}'." ) ]
1148
- internal void UnixNssDbTrustSucceeded ( string path ) => WriteEvent ( 90 , path ) ;
1147
+ [ Event ( 90 , Level = EventLevel . Warning , Message = "Failed to trust the certificate in the NSS database in '{0}'. This will likely affect the {1} family of browsers ." ) ]
1148
+ internal void UnixNssDbTrustFailed ( string path , string browser ) => WriteEvent ( 90 , path , browser ) ;
1149
1149
1150
- [ Event ( 91 , Level = EventLevel . Warning , Message = "Failed to untrust the certificate in .NET: {0}." ) ]
1151
- internal void UnixDotnetUntrustException ( string exceptionMessage ) => WriteEvent ( 91 , exceptionMessage ) ;
1150
+ [ Event ( 91 , Level = EventLevel . Verbose , Message = "Trusted the certificate in the NSS database in ' {0}' ." ) ]
1151
+ internal void UnixNssDbTrustSucceeded ( string path ) => WriteEvent ( 91 , path ) ;
1152
1152
1153
- [ Event ( 92 , Level = EventLevel . Warning , Message = "Failed to untrust the certificate in OpenSSL ." ) ]
1154
- internal void UnixOpenSslUntrustFailed ( ) => WriteEvent ( 92 ) ;
1153
+ [ Event ( 92 , Level = EventLevel . Warning , Message = "Failed to untrust the certificate in .NET: {0} ." ) ]
1154
+ internal void UnixDotnetUntrustException ( string exceptionMessage ) => WriteEvent ( 92 , exceptionMessage ) ;
1155
1155
1156
- [ Event ( 93 , Level = EventLevel . Verbose , Message = "Untrusted the certificate in OpenSSL." ) ]
1157
- internal void UnixOpenSslUntrustSucceeded ( ) => WriteEvent ( 93 ) ;
1156
+ [ Event ( 93 , Level = EventLevel . Warning , Message = "Failed to untrust the certificate in OpenSSL." ) ]
1157
+ internal void UnixOpenSslUntrustFailed ( ) => WriteEvent ( 93 ) ;
1158
1158
1159
- [ Event ( 94 , Level = EventLevel . Warning , Message = "Failed to remove the certificate from the NSS database in '{0}' ." ) ]
1160
- internal void UnixNssDbUntrustFailed ( string path ) => WriteEvent ( 94 , path ) ;
1159
+ [ Event ( 94 , Level = EventLevel . Verbose , Message = "Untrusted the certificate in OpenSSL ." ) ]
1160
+ internal void UnixOpenSslUntrustSucceeded ( ) => WriteEvent ( 94 ) ;
1161
1161
1162
- [ Event ( 95 , Level = EventLevel . Verbose , Message = "Removed the certificate from the NSS database in '{0}'." ) ]
1163
- internal void UnixNssDbUntrustSucceeded ( string path ) => WriteEvent ( 95 , path ) ;
1162
+ [ Event ( 95 , Level = EventLevel . Warning , Message = "Failed to remove the certificate from the NSS database in '{0}'." ) ]
1163
+ internal void UnixNssDbUntrustFailed ( string path ) => WriteEvent ( 95 , path ) ;
1164
1164
1165
- [ Event ( 96 , Level = EventLevel . Warning , Message = "The certificate is only partially trusted - some clients will not accept it ." ) ]
1166
- internal void UnixTrustPartiallySucceeded ( ) => WriteEvent ( 96 ) ;
1165
+ [ Event ( 96 , Level = EventLevel . Verbose , Message = "Removed the certificate from the NSS database in '{0}' ." ) ]
1166
+ internal void UnixNssDbUntrustSucceeded ( string path ) => WriteEvent ( 96 , path ) ;
1167
1167
1168
- [ Event ( 97 , Level = EventLevel . Warning , Message = "Failed to look up the certificate in the NSS database in '{0}': {1} ." ) ]
1169
- internal void UnixNssDbCheckException ( string path , string exceptionMessage ) => WriteEvent ( 97 , path , exceptionMessage ) ;
1168
+ [ Event ( 97 , Level = EventLevel . Warning , Message = "The certificate is only partially trusted - some clients will not accept it ." ) ]
1169
+ internal void UnixTrustPartiallySucceeded ( ) => WriteEvent ( 97 ) ;
1170
1170
1171
- [ Event ( 98 , Level = EventLevel . Warning , Message = "Failed to add the certificate to the NSS database in '{0}': {1}." ) ]
1172
- internal void UnixNssDbAdditionException ( string path , string exceptionMessage ) => WriteEvent ( 98 , path , exceptionMessage ) ;
1171
+ [ Event ( 98 , Level = EventLevel . Warning , Message = "Failed to look up the certificate in the NSS database in '{0}': {1}." ) ]
1172
+ internal void UnixNssDbCheckException ( string path , string exceptionMessage ) => WriteEvent ( 98 , path , exceptionMessage ) ;
1173
1173
1174
- [ Event ( 99 , Level = EventLevel . Warning , Message = "Failed to remove the certificate from the NSS database in '{0}': {1}." ) ]
1175
- internal void UnixNssDbRemovalException ( string path , string exceptionMessage ) => WriteEvent ( 99 , path , exceptionMessage ) ;
1174
+ [ Event ( 99 , Level = EventLevel . Warning , Message = "Failed to add the certificate to the NSS database in '{0}': {1}." ) ]
1175
+ internal void UnixNssDbAdditionException ( string path , string exceptionMessage ) => WriteEvent ( 99 , path , exceptionMessage ) ;
1176
1176
1177
- [ Event ( 100 , Level = EventLevel . Warning , Message = "Failed to find the Firefox profiles in directory '{0}': {1}." ) ]
1178
- internal void UnixFirefoxProfileEnumerationException ( string firefoxDirectory , string message ) => WriteEvent ( 100 , firefoxDirectory , message ) ;
1177
+ [ Event ( 100 , Level = EventLevel . Warning , Message = "Failed to remove the certificate from the NSS database in '{0}': {1}." ) ]
1178
+ internal void UnixNssDbRemovalException ( string path , string exceptionMessage ) => WriteEvent ( 100 , path , exceptionMessage ) ;
1179
1179
1180
- [ Event ( 101 , Level = EventLevel . Verbose , Message = "No Firefox profiles found in directory '{0}'." ) ]
1181
- internal void UnixNoFirefoxProfilesFound ( string firefoxDirectory ) => WriteEvent ( 101 , firefoxDirectory ) ;
1180
+ [ Event ( 101 , Level = EventLevel . Warning , Message = "Failed to find the Firefox profiles in directory '{0}': {1} ." ) ]
1181
+ internal void UnixFirefoxProfileEnumerationException ( string firefoxDirectory , string message ) => WriteEvent ( 101 , firefoxDirectory , message ) ;
1182
1182
1183
- [ Event ( 102 , Level = EventLevel . Warning , Message = "Failed to trust the certificate in the NSS database in '{0}'. This will likely affect the {1} family of browsers. " +
1183
+ [ Event ( 102 , Level = EventLevel . Verbose , Message = "No Firefox profiles found in directory '{0}'." ) ]
1184
+ internal void UnixNoFirefoxProfilesFound ( string firefoxDirectory ) => WriteEvent ( 102 , firefoxDirectory ) ;
1185
+
1186
+ [ Event ( 103 , Level = EventLevel . Warning , Message = "Failed to trust the certificate in the NSS database in '{0}'. This will likely affect the {1} family of browsers. " +
1184
1187
"This likely indicates that the database already contains an entry for the certificate under a different name. Please remove it and try again." ) ]
1185
- internal void UnixNssDbTrustFailedWithProbableConflict ( string path , string browser ) => WriteEvent ( 102 , path , browser ) ;
1188
+ internal void UnixNssDbTrustFailedWithProbableConflict ( string path , string browser ) => WriteEvent ( 103 , path , browser ) ;
1186
1189
1187
1190
// This may be annoying, since anyone setting the variable for un/trust will likely leave it set for --check.
1188
1191
// However, it seems important to warn users who set it specifically for --check.
1189
- [ Event ( 103 , Level = EventLevel . Warning , Message = "The {0} environment variable is set but will not be consumed while checking trust." ) ]
1190
- internal void UnixOpenSslCertificateDirectoryOverrideIgnored ( string openSslCertDirectoryOverrideVariableName ) => WriteEvent ( 103 , openSslCertDirectoryOverrideVariableName ) ;
1192
+ [ Event ( 104 , Level = EventLevel . Warning , Message = "The {0} environment variable is set but will not be consumed while checking trust." ) ]
1193
+ internal void UnixOpenSslCertificateDirectoryOverrideIgnored ( string openSslCertDirectoryOverrideVariableName ) => WriteEvent ( 104 , openSslCertDirectoryOverrideVariableName ) ;
1191
1194
1192
- [ Event ( 104 , Level = EventLevel . Warning , Message = "The {0} command is unavailable. It is required for updating certificate trust in OpenSSL." ) ]
1193
- internal void UnixMissingOpenSslCommand ( string openSslCommand ) => WriteEvent ( 104 , openSslCommand ) ;
1195
+ [ Event ( 105 , Level = EventLevel . Warning , Message = "The {0} command is unavailable. It is required for updating certificate trust in OpenSSL." ) ]
1196
+ internal void UnixMissingOpenSslCommand ( string openSslCommand ) => WriteEvent ( 105 , openSslCommand ) ;
1194
1197
1195
- [ Event ( 105 , Level = EventLevel . Warning , Message = "The {0} command is unavailable. It is required for querying and updating NSS databases, which are chiefly used to trust certificates in browsers." ) ]
1196
- internal void UnixMissingCertUtilCommand ( string certUtilCommand ) => WriteEvent ( 105 , certUtilCommand ) ;
1198
+ [ Event ( 106 , Level = EventLevel . Warning , Message = "The {0} command is unavailable. It is required for querying and updating NSS databases, which are chiefly used to trust certificates in browsers." ) ]
1199
+ internal void UnixMissingCertUtilCommand ( string certUtilCommand ) => WriteEvent ( 106 , certUtilCommand ) ;
1197
1200
1198
- [ Event ( 106 , Level = EventLevel . Verbose , Message = "Untrusting the certificate in OpenSSL was skipped since '{0}' does not exist." ) ]
1199
- internal void UnixOpenSslUntrustSkipped ( string certPath ) => WriteEvent ( 106 , certPath ) ;
1201
+ [ Event ( 107 , Level = EventLevel . Verbose , Message = "Untrusting the certificate in OpenSSL was skipped since '{0}' does not exist." ) ]
1202
+ internal void UnixOpenSslUntrustSkipped ( string certPath ) => WriteEvent ( 107 , certPath ) ;
1200
1203
1201
- [ Event ( 107 , Level = EventLevel . Warning , Message = "Failed to delete certificate file '{0}': {1}." ) ]
1202
- internal void UnixCertificateFileDeletionException ( string certPath , string exceptionMessage ) => WriteEvent ( 107 , certPath , exceptionMessage ) ;
1204
+ [ Event ( 108 , Level = EventLevel . Warning , Message = "Failed to delete certificate file '{0}': {1}." ) ]
1205
+ internal void UnixCertificateFileDeletionException ( string certPath , string exceptionMessage ) => WriteEvent ( 108 , certPath , exceptionMessage ) ;
1203
1206
1204
- [ Event ( 108 , Level = EventLevel . Error , Message = "Unable to export the certificate since '{0}' already exists. Please remove it." ) ]
1205
- internal void UnixNotOverwritingCertificate ( string certPath ) => WriteEvent ( 108 , certPath ) ;
1207
+ [ Event ( 109 , Level = EventLevel . Error , Message = "Unable to export the certificate since '{0}' already exists. Please remove it." ) ]
1208
+ internal void UnixNotOverwritingCertificate ( string certPath ) => WriteEvent ( 109 , certPath ) ;
1206
1209
1207
- [ Event ( 109 , Level = EventLevel . LogAlways , Message = "For OpenSSL trust to take effect, '{0}' must be listed in the {2} environment variable. " +
1210
+ [ Event ( 110 , Level = EventLevel . LogAlways , Message = "For OpenSSL trust to take effect, '{0}' must be listed in the {2} environment variable. " +
1208
1211
"For example, `export SSL_CERT_DIR={0}:{1}`. " +
1209
1212
"See https://aka.ms/dev-certs-trust for more information." ) ]
1210
- internal void UnixSuggestSettingEnvironmentVariable ( string certDir , string openSslDir , string envVarName ) => WriteEvent ( 109 , certDir , openSslDir , envVarName ) ;
1213
+ internal void UnixSuggestSettingEnvironmentVariable ( string certDir , string openSslDir , string envVarName ) => WriteEvent ( 110 , certDir , openSslDir , envVarName ) ;
1211
1214
1212
- [ Event ( 110 , Level = EventLevel . LogAlways , Message = "For OpenSSL trust to take effect, '{0}' must be listed in the {2} environment variable. " +
1215
+ [ Event ( 111 , Level = EventLevel . LogAlways , Message = "For OpenSSL trust to take effect, '{0}' must be listed in the {2} environment variable. " +
1213
1216
"See https://aka.ms/dev-certs-trust for more information." ) ]
1214
- internal void UnixSuggestSettingEnvironmentVariableWithoutExample ( string certDir , string envVarName ) => WriteEvent ( 110 , certDir , envVarName ) ;
1217
+ internal void UnixSuggestSettingEnvironmentVariableWithoutExample ( string certDir , string envVarName ) => WriteEvent ( 111 , certDir , envVarName ) ;
1215
1218
}
1216
1219
1217
1220
internal sealed class UserCancelledTrustException : Exception
0 commit comments