Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Based on your filenames, it looks like you may have a PGP key. Is that correct?</p> <p>These may work with PGP as well, but for a non-PGP key, I would extract the public key with these commands:</p> <pre><code>openssl pkcs12 -in mykeystore.p12 -clcerts -nokeys -out mycert.pem openssl x509 -pubkey -in mycert.pem -noout &gt; mypubkey.pem </code></pre> <p>The -nokeys option prevents the output of private keys.</p> <p>Public keys and certificates can generally be given out freely without a problem. You obviously don't want to give out the private key, but the public parts are fine.</p> <p>One thing to note though...most of the time, you want to give out the certificate, not just the key by itself. The certificate (obtained from the first command above) contains the public key and contains a signature by someone who is associating that key with a particular identity.</p> <p>For example, Verisign will sign a certificate containing your public key. You can then give this certificate to your friends, and since they trust Verisign, they know that is indeed your public key.</p> <p>If you just email your public key to your friends, there is a possibility someone could intercept the public key and place their own key in the email before it got to your friends. They would mistakenly think they had your key when they had someone else's key. If they tried to encrypt with it, that person would be able to decode everything.</p> <p>So if you don't use a certificate, at least verify your friends got the correct key by confirming the hash of the key by telephone or in person.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload