Skip to content

Commit 6ea2a60

Browse files
committed
chore: Remove old cert cleanup code
The cert chain cleanup code is about 18 months old. If anyone is still running something that has old cert info, and tries to upgrade to this library, they've got a lot of problems ahead anyways. This can be removed. Affects #629
1 parent 21efcba commit 6ea2a60

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Buttplug.Server.Connectors.WebsocketServer/CertUtils.cs

+1-12
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,11 @@ public static X509Certificate2 LoadPEMCert(string aPEMCertPath, string aPEMPrivK
3030
/// <exception cref="CryptographicException">
3131
/// Sometimes thrown due to issues generating keys.
3232
/// </exception>
33-
publicstaticX509Certificate2GetCert(stringapp,stringhostname="localhost")
33+
publicstaticX509Certificate2GetCert(stringapp)
3434
{
3535
varappPath=Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),app);
36-
varcaPfx=Path.Combine(appPath,"ca.pfx");
3736
varcertPfx=Path.Combine(appPath,"cert.pfx");
3837

39-
// Patch release rework of cert handling: our websocket server doesn't accept a chain!
40-
if(File.Exists(caPfx))
41-
{
42-
File.Delete(caPfx);
43-
if(File.Exists(certPfx))
44-
{
45-
File.Delete(certPfx);
46-
}
47-
}
48-
4938
if(!File.Exists(certPfx))
5039
{
5140
thrownewFileNotFoundException("cert.pfx file not found. You will need to generate a cert somehow.");

0 commit comments

Comments
 (0)
close