Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate gpg signing keys in bintray for jcenter in windows

I am unable to get GPG signing keys. Please any one tell me. Thanks enter image description here How to generate gps signing keys in windows for jcenter

like image 609
Krishna Avatar asked Apr 26 '16 08:04

Krishna


2 Answers

For Linux/Mac you can use gpg. I learned how to do this here. I needed to prefix the following commands with sudo.

  1. Generate the keys

    gpg --gen-key
    

    Follow the defaults but enter your name and email and optionally a password.

  2. List the keys.

    gpg --list-keys
    

    which should show something like this:

    pub   2038R/91E83BF2 2017-05-13
    uid                  Bob <[email protected]>
    sub   2038R/E3872671 2017-05-13
    
  3. Upload the public key to a keyserver

    gpg --keyserver hkp://pool.sks-keyservers.net --send-keys PUBLIC_KEY_ID
    

    replacing PUBLIC_KEY_ID with your id (91E83BF2 in the example above).

  4. Export your public and private keys to a text file

    gpg -a --export [email protected] > public_key_sender.asc
    gpg -a --export-secret-key [email protected] > private_key_sender.asc
    
  5. Copy the contents of these files to Bintray at Edit Profile > GPG signing.

enter image description here

like image 72
Suragch Avatar answered Oct 20 '22 17:10

Suragch


Windows users can generate GPG keys using GPG4Win.
There are many tutorials available, for example this one.

like image 44
Dror Bereznitsky Avatar answered Oct 20 '22 16:10

Dror Bereznitsky