询问者
azure cli 下载storage blog提示错误。

问题
-
今天在suse 11 sp4下面使用azure cli,出现如下错误:
linux-c8ty:/home # azure storage blob download -b 1.txt --container databackup -a STORAGE_ACCOUNT -k STORAGE_ACCESS_KEY
info: Executing command storage blob download
+ Download blob 1.txt in container databackup to 1.txt
Percentage: 0% (0B/0B) Average Speed: 0B/S Elapsed Time: 00:00:00
error: unable to get local issuer certificate
error: Error information has been recorded to /root/.azure/azure.err
error: storage blob download command failed不知道什么问题?主要是想把blog中的文件下载到suse服务器中使用,除了这个方式还有其他方式吗?
- 已编辑 Gavin.Wu 2016年11月15日 8:25
全部回复
-
Hi,
>error: unable to get local issuer certificate
您遇到的这个问题应该是缺少了有效的SSL证书,导致您未能连接到Azure Storage Account,
您需要检查一下您的CA 证书,更多的信息访问该网页:http://curl.haxx.se/docs/caextract.html
>除了这个方式还有其他方式吗?
在Linux 下管理Azure Storage 也可以使用AZCopy 工具,使用方法可以参考这篇文章:https://www.azure.cn/documentation/articles/storage-use-azcopy
Microsoft Azure Storage Explorer这款工具提供了更直观的Azure Storage 操作,Linux版下载地址:http://go.microsoft.com/fwlink/?LinkId=722418
希望对您有帮助,如您有任何其他疑问,欢迎继续发帖提问。
-
Hi,
>能否详细说说ssl 证书问题具体的操作方法
使用以下指令可以下载最新CA证书:
# cd /etc/ssl/certs
# wget -O - http://curl.haxx.se/ca/cacert.pem
> Microsoft Azure Storage Explorer有没有操作手册
Storage Explorer 使用手册:https://docs.microsoft.com/zh-cn/azure/vs-azure-tools-storage-manage-with-storage-explorer
- 已编辑 David TangMicrosoft contingent staff, Moderator 2016年11月23日 6:22 将 Storage Explore 使用手册修改为中文说明链接
-
在执行Azure storage blob download之前我们需要使用从CLI 连接到Azure订阅,请尝试连接后在次尝试,关于如何连接到Azure订阅详细请阅读:https://www.azure.cn/documentation/articles/xplat-cli-connect/。如果还有任何问题,欢迎继续提问。
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 David TangMicrosoft contingent staff, Moderator 2016年11月30日 9:53