Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by G-Reusch · Sep 18, 2019 at 11:17 PM · .netcertificateftp

Issue With System.Net when Using FTP

I'm currently hosting an FTP server and trying to get Unity to connect to it. The server recently implemented client-side certificates and I'm having issues with Unity and System.Net not playing well. I'm getting a "Not Implemented" exception when trying to specify a certificate for my FTPWebRequest. Here is my code:

 ftpRequest = (FtpWebRequest)WebRequest.Create(ftpURI);
 ftpRequest.Credentials = new NetworkCredential(user, pass);
 
 ftpRequest.EnableSsl = true;
 
 X509Certificate cert = X509Certificate.CreateFromCertFile(certPath);
 X509CertificateCollection certCollection = new X509CertificateCollection();
 certCollection.Add(cert);
 ftpRequest.ClientCertificates = certCollection;

Specifically, here's the error that is getting output from that last line:

 System.NotImplementedException: The method or operation is not implemented.
   at System.Net.FtpWebRequest.set_ClientCertificates (System.Security.Cryptography.X509Certificates.X509CertificateCollection value) [0x00005] in <9f8c4786222746238eb929db40bf8dd1>:0 
   at (wrapper remoting-invoke-with-check) System.Net.FtpWebRequest.set_ClientCertificates(System.Security.Cryptography.X509Certificates.X509CertificateCollection)

I've had no issues connecting to the server prior to trying to load in a certificate. I've verified that the certificate is loading in, as I'm able to print out the info from it (and certCollection's Count is 1).

My Unity version is 2019.2.4 and I'm using the .NET 4.x API level, but I'm not sure why this particular function in System.NET is returning as not implemented. I've tried on two different machines so I don't think it's a bad installation.

Has anyone else been able to use use FTP and load in a client certificate without this exception? Is this a quirk of whatever .NET version Unity is currently on? Thanks.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by G-Reusch · Nov 04, 2019 at 07:56 PM

I filed a bug report for this and it turns out it was not implemented in the version of Mono that Unity 2019.2 is on. They plan on updating Mono versionsometime in Unity 2020 which will hopefully resolve this issue.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

113 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Issue with TLS and X509 authentication 0 Answers

Download from FTP with Hololens? 0 Answers

XML Deserializer from xml from a web server 0 Answers

BindingList could not be found? 2 Answers

Random problem (With Random .Net orUnity) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges