@@ -47,20 +47,6 @@ public void Clear ()
47
47
}
48
48
}
49
49
50
- /// <summary>
51
- /// Loads a certificate from the specified subject name.
52
- /// </summary>
53
- /// <param name="subjectName">The subject name of the certificate to load.</param>
54
- /// <param name="storageFlags">The storage flags for the certificate.</param>
55
- /// <returns>The loaded certificate, or null if not found.</returns>
56
- [ Obsolete ( "Use LoadCertificateAsync instead" ) ]
57
- public X509Certificate2 ? LoadCertificate ( string subjectName , X509KeyStorageFlags storageFlags )
58
- {
59
- logger ? . LogTrace ( "LoadCertificate called" ) ;
60
-
61
- return LoadCertificateAsync ( subjectName , storageFlags , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
62
- }
63
-
64
50
/// <inheritdoc/>
65
51
public async Task < X509Certificate2 ? > LoadCertificateAsync ( string subjectName , X509KeyStorageFlags storageFlags , CancellationToken cancellationToken )
66
52
{
@@ -70,20 +56,6 @@ public void Clear ()
70
56
return await LoadCertificateAsync ( filePath , string . Empty , storageFlags , cancellationToken ) ;
71
57
}
72
58
73
- /// <summary>
74
- /// Loads the root certificate from the specified path or name.
75
- /// </summary>
76
- /// <param name="pathOrName">The path or name of the root certificate.</param>
77
- /// <param name="password">The password for the root certificate.</param>
78
- /// <param name="storageFlags">The storage flags for the root certificate.</param>
79
- /// <returns>The loaded root certificate, or null if not found.</returns>
80
- [ Obsolete ( "Use LoadRootCertificateAsync instead" ) ]
81
- public X509Certificate2 ? LoadRootCertificate ( string pathOrName , string ? password , X509KeyStorageFlags storageFlags )
82
- {
83
- logger ? . LogTrace ( "LoadRootCertificate called" ) ;
84
- return LoadRootCertificateAsync ( pathOrName , password , storageFlags , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
85
- }
86
-
87
59
/// <inheritdoc/>
88
60
public async Task < X509Certificate2 ? > LoadRootCertificateAsync ( string pathOrName , string ? password , X509KeyStorageFlags storageFlags , CancellationToken cancellationToken )
89
61
{
@@ -92,19 +64,6 @@ public void Clear ()
92
64
return await LoadCertificateAsync ( path , password , storageFlags , cancellationToken ) ;
93
65
}
94
66
95
- /// <summary>
96
- /// Saves a certificate with the specified subject name.
97
- /// </summary>
98
- /// <param name="subjectName">The subject name of the certificate to save.</param>
99
- /// <param name="certificate">The certificate to save.</param>
100
- [ Obsolete ( "Use SaveCertificateAsync instead" ) ]
101
- public void SaveCertificate ( string subjectName , X509Certificate2 certificate )
102
- {
103
- logger ? . LogTrace ( "SaveCertificate called" ) ;
104
-
105
- SaveCertificateAsync ( subjectName , certificate , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
106
- }
107
-
108
67
/// <inheritdoc/>
109
68
public async Task SaveCertificateAsync ( string subjectName , X509Certificate2 certificate , CancellationToken cancellationToken )
110
69
{
@@ -116,19 +75,6 @@ public async Task SaveCertificateAsync ( string subjectName, X509Certificate2 ce
116
75
Log_SaveCertificateAsyncFinished ( ) ;
117
76
}
118
77
119
- /// <summary>
120
- /// Saves the root certificate to the specified path or name.
121
- /// </summary>
122
- /// <param name="pathOrName">The path or name where the root certificate will be saved.</param>
123
- /// <param name="password">The password for the root certificate.</param>
124
- /// <param name="certificate">The root certificate to save.</param>
125
- public void SaveRootCertificate ( string pathOrName , string password , X509Certificate2 certificate )
126
- {
127
- logger ? . LogTrace ( "SaveRootCertificate called" ) ;
128
-
129
- SaveRootCertificateAsync ( pathOrName , password , certificate , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
130
- }
131
-
132
78
/// <inheritdoc/>
133
79
public async Task SaveRootCertificateAsync ( string pathOrName , string password , X509Certificate2 certificate , CancellationToken cancellationToken )
134
80
{
0 commit comments