SSL Error on dotnet build AcceptAndroidSDKLicenses
Following Microsoft’s notes here, I am trying to run
dotnet build -t:InstallAndroidDependencies -f:net8.0-android -p:AndroidSdkDirectory="$HOME/Library/Android/sdk" -p:AcceptAndroidSDKLicenses=True
on a .NET Maui application on a Mac.
I’m receiving the following error
error : Failed to download Xamarin Repository manifest from https://aka.ms/xamarin/sdkmanifest/d17-9. System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.
I’m working on a corporate network that uses a self-signed certificate to resign all SSL traffic on the firewall. I suspect this is what is causing the error. I cannot turn it off.
How do I tell dotnet build AcceptAndroidSDKLicenses
to trust my ssl certificate?
I have already tried exporting the certificate for aka.ms:443
and trusting it in the Keychain Access. I’ve also trusted my self-signed cert in the keychain.