Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signature and Exchange key types– what are they and when to use each ( Makecert -sky )?

-sky switch Specifies the subject's key type, which must be signature, exchange, or an integer that represents a provider type. By default, you can pass 1 for an exchange key and 2 for a signature key.

If I understand this correctly, then signature and exchange are two key types? In what situations is each used?

thank you

like image 717
user437291 Avatar asked Nov 23 '10 20:11

user437291


People also ask

What is MakeCert?

MakeCert (Makecert.exe) is a command-line CryptoAPI tool that creates an X. 509 certificate that is signed by a system test root key or by another specified key. The certificate binds a certificate name to the public part of the key pair. The certificate is saved to a file, a system certificate store, or both.

When implementing ADFS which types of certificates are used?

AD FS does not require that certificates be issued by a CA. However, the SSL certificate (the certificate that is also used by default as the service communications certificate) must be trusted by the AD FS clients. We recommend that you not use self-signed certificates for these certificate types.

How many types of ADFS certificates are needed?

In 95% of ADFS deployments, it will require three certificates to be properly installed: SSL certificate. Token Signing Certificate. Token “Decryption” Certificate.


2 Answers

That is correct, these are the two type of asymmetric keys (public/private keys). Asymmetric keys are generally used for two purposes, 1)encrypt session keys 2)creating a digital signature

When talking about the key type: Exchange = encrypt session keys Signature = create digital signature

Here is a link that has a good explanation. Asymmetric Keys

like image 191
StuckOverflow Avatar answered Sep 16 '22 21:09

StuckOverflow


The answer is hidden in the very end of the article referenced in other answer.

TL;DR: There is no technical difference between Signature and Exchange keys.

It is just about the key storage. Typical user will have two different key pairs for two different purposes ("exchange" and "sign"). They will be stored in corresponding "slots" of the key store. And the key store can actually contain more key pairs, if needed.

like image 40
C-F Avatar answered Sep 19 '22 21:09

C-F