Search code examples
google-chromegoogle-chrome-extensionpem

What is a .pem file and How to use it?


I am designing a new chrome extension and when I package it then I get 2 file: a .crx file and a .pem file.

I want to distribuite my extension on my server ( shared ) and on Chrome webstore.

Could you tell me what is a pem file and how to use it ?

I can't find documentation about it.


Solution

  • The packager creates two files:

    • a .crx file, which is the actual extension that can be installed.
    • a .pem file, which contains the private key.

    You'll need the .pem later if you want to:

    • Update the extension
    • Uploading a previously packaged extension to the Chrome Web Store (make sure that the file is called key.pem (more info))

    So, do not lose your private key (.pem)!