<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Kirill,
<div class=""><br class="">
</div>
<div class="">You probably don’t need to generate new encryption keys unless you have a use case where the IdP will be receiving inbound encrypted messages.  It’s rare.</div>
<div class=""><br class="">
</div>
<div class="">The only other recommendation is that you keep your keys in version control along with your configuration files, with appropriately strong boundaries between your environments.</div>
<div class=""><br class="">
</div>
<div class="">Other than that, I think you have the process right.  In particular, you wouldn’t want to designate a key as signing-only if you do intend to use encryption, and you wouldn’t make new encryption keys if you’re just signing.</div>
<div class=""><br class="">
</div>
<div class="">Take care,</div>
<div class="">Nate.</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 21, 2016, at 23:47, Kirill <<a href="mailto:ks.grishin@gmail.com" class="">ks.grishin@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
1. The production team generates there own public and private key pairs and puts them in the<span class="Apple-converted-space"> </span><br class="">
</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
following files (as defined int the idp.properties):<br class="">
<br class="">
%{idp.home}/credentials/idp-signing.key (private / signing)<br class="">
%{idp.home}/credentials/idp-signing.crt (public / signing)<br class="">
%{idp.home}/credentials/idp-encryption.key (private / encryption)<br class="">
%{idp.home}/credentials/idp-encryption.crt (public / encryption)<br class="">
<br class="">
</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
2. Then they put the public keys to <KeyDescriptor use="signing" /> and <KeyDescriptor use="signing" /> elements of metadata and give this updated metadata to SP.</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>