X509Certificate2.PrivateKey' cannot be assigned to (it is read only)

Open
#24 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, unity
Domain
networking

Research direction

Start at websocket-sharp/Net/EndPointListener.cs around line 140 and reproduce the build with Unity3D 4.2 to inspect the X509Certificate2.PrivateKey assignment. Confirm a compatible workaround or code change for the read-only property, then verify the project builds without CS0200.

Written by the indexing model from the issue text.

Description

I receive the following error when using websocket-sharp in Unity3d 4.2:

websocket-sharp/Net/EndPointListener.cs(140,46): error CS0200: Property or indexer `System.Security.Cryptography.X509Certificates.X509Certificate2.PrivateKey' cannot be assigned to (it is read only)

Is there a workaround for this?

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sta/websocket-sharp

All issues in sta/websocket-sharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.