Azure / azure-sdk-for-go

This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
https://docs.microsoft.com/azure/developer/go/
MIT License
1.64k stars 844 forks source link

How to assign a self-signed certificate for Azure Stack #1435

Closed bingosummer closed 6 years ago

bingosummer commented 6 years ago

Azure Stack development kit uses a self-signed certificate. How to assign it when using azure-sdk-for-go? If not specified, I got the following error:

Get https://management.local.azurestack.external/subscriptions/xxx/resourcegroups/xxx/providers/Microsoft.Resources/deployments/xxx?api-version=2017-05-10: x509: certificate signed by unknown authority"
vladbarosan commented 6 years ago

@bingosummer can you please clarify what you mean ? (i.e. give a sample code of what you are trying to do ? ) Are you referring to using a self signed client certificate for auth ?

marstr commented 6 years ago

Closing as stale, feel free to mention us and have it re-opened.

bingosummer commented 6 years ago

I figured it out. I need to put the self-signed certificate in /etc/ssl/certs/ca-certificates.crt.