Chrome 扩展 .pem 文件的用途是什么? [英] What is the Chrome extension .pem file for?

查看:156
本文介绍了Chrome 扩展 .pem 文件的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建我的第一个 Google Chrome 扩展程序时,我按照迷宫般的指令找到了 T 并成功启动了一个扩展程序.我还成为了一个神秘的 .pem 文件的新所有者,我被警告要把它放在一个安全的地方,永远不会丢失.我认真地将文件放在一个安全的地方,并可能在我使用它时进行了多次备份.几个月过去了,虽然我推出了更多扩展并进行了很多更新,但我没有一次回顾过 .pem 文件.我一直在守护的这个文件是什么——如果我决定清理一些杂物并删除它,它真的会如此糟糕吗?

When I created my first Google Chrome extension, I followed the labyrinth of instructions to a T and was left with a successfully launched extension. I was also left the new owner of an enigmatic .pem file that I was warned to place in a secure spot and never lose. I conscientiously placed the file in a safe place and possibly made several backups while I was at it. It has been several months now, and while I have launched some more extensions and made quite a few updates, I have, not once, looked back at the .pem file. What is this file that I have been guarding with my life -- and would it really be so terrible if I decided to clear out some clutter and delete it?

我试图进一步调查这个文件是什么,但对于一些据称如此重要的东西,那里的信息很少.文档仅说明:

I have tried to investigate further into what this file is, but for something that is supposedly so crucial, there is very little information out there. The documentation states only:

不要丢失私钥! 将 .pem 文件保存在一个秘密和安全的地方;需要更新扩展.

Do not lose the private key! Keep the .pem file in a secret and secure place; it will be needed to update the extension.

这个说法绝对是不真实的,因为我已经做了很多更新,几乎没有看一眼 .pem.我还在 SO 上发现了这个问题,但提供的唯一信息是需要:

This statement is most definitely untrue, as I have made quite a few updates with nary a glance at the .pem. I also found this question on SO, but the only information provided is that it is needed to:

更新扩展

再次,不真实,并且:

将之前打包的扩展程序上传到 Chrome 网上应用店(确保文件名为 key.pem

Upload a previously packaged extension to the Chrome Web Store (make sure that the file is called key.pem

老实说,我不确定这指的是什么情况.

I am honestly not sure what case that refers to.

我还设法收集到该文件与证书和签名有关,而我对这个主题知之甚少.

I have also managed to glean that the file has something to do with certificates and signing, a topic that I know very little about.

有人可以向我全面解释 .pem 到底是什么,以及为什么根据我遇到的所有情况,我必须如此仔细地跟踪它?

Can someone provide me with a comprehensive explanation of what exactly the .pem is and why, according to everything I've come across, I must keep track of it so carefully?

推荐答案

我知道 .pem 文件的唯一用途是在您将扩展程序上传到 Chrome 网上应用店时能够保留您的扩展程序 ID.

The only use I know for the .pem file is to be able to preserve your extension ID when you upload the extension to the Chrome Web Store.

当您第一次上传扩展程序时,Web Store 会随机生成一个新的扩展程序 ID.
如果您不希望网上应用店生成 ID,而是希望保留您在计算机本地拥有的 ID(在开发扩展程序时),那么您可以使用 key.pem 包含在包中的文件.

When you first upload an extension, the Web Store generates a new extension ID randomly.
If you DO NOT want the Web Store to generate an ID but rather you want to keep the ID you had locally on your computer (when you were developing the extension) then you upload the extension with the key.pem file included inside the package.

这里有更多信息:如何更改 chrome 打包的应用程序 ID 或者为什么我们需要 manifest.json 中的关键字段?
在这里:将现有扩展转移到图库

这篇关于Chrome 扩展 .pem 文件的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆