Identity Server 4 - IDX10630: PII is hidden
up vote
1
down vote
favorite
I'm fairly new to using encryption and rsa tokens and I'm trying to get IDentityServer4 to not use the developersigning, but one of my own. Here is what I have tried so far:
var keyInfo = new RSACryptoServiceProvider().ExportParameters(true);
var rsaSecurityKey = new RsaSecurityKey(new RSAParameters
{
D = keyInfo.D,
DP = keyInfo.DP,
DQ = keyInfo.DQ,
Exponent = keyInfo.Exponent,
InverseQ = keyInfo.InverseQ,
Modulus = keyInfo.Modulus,
P = keyInfo.P,
Q = keyInfo.Q
});
services.AddIdentityServer()
.AddSigningCredential(rsaSecurityKey)
.AddInMemoryPersistedGrants()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity<User>();
However, when I run Identity Server4 and I get redirected to sign in page from another website, I get the following error:
IDX10630: The '[PII is hidden]' for signing cannot be smaller than '[PII is hidden]' bits. KeySize: '[PII is hidden]'.
Parameter name: key.KeySize
I have to admit, I've been on this all weekend, trying to figure out how to use SigningCredentials and I'm not really sure what I've done wrong above.
c# rsa identityserver4 signing
add a comment |
up vote
1
down vote
favorite
I'm fairly new to using encryption and rsa tokens and I'm trying to get IDentityServer4 to not use the developersigning, but one of my own. Here is what I have tried so far:
var keyInfo = new RSACryptoServiceProvider().ExportParameters(true);
var rsaSecurityKey = new RsaSecurityKey(new RSAParameters
{
D = keyInfo.D,
DP = keyInfo.DP,
DQ = keyInfo.DQ,
Exponent = keyInfo.Exponent,
InverseQ = keyInfo.InverseQ,
Modulus = keyInfo.Modulus,
P = keyInfo.P,
Q = keyInfo.Q
});
services.AddIdentityServer()
.AddSigningCredential(rsaSecurityKey)
.AddInMemoryPersistedGrants()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity<User>();
However, when I run Identity Server4 and I get redirected to sign in page from another website, I get the following error:
IDX10630: The '[PII is hidden]' for signing cannot be smaller than '[PII is hidden]' bits. KeySize: '[PII is hidden]'.
Parameter name: key.KeySize
I have to admit, I've been on this all weekend, trying to figure out how to use SigningCredentials and I'm not really sure what I've done wrong above.
c# rsa identityserver4 signing
1
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
1
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm fairly new to using encryption and rsa tokens and I'm trying to get IDentityServer4 to not use the developersigning, but one of my own. Here is what I have tried so far:
var keyInfo = new RSACryptoServiceProvider().ExportParameters(true);
var rsaSecurityKey = new RsaSecurityKey(new RSAParameters
{
D = keyInfo.D,
DP = keyInfo.DP,
DQ = keyInfo.DQ,
Exponent = keyInfo.Exponent,
InverseQ = keyInfo.InverseQ,
Modulus = keyInfo.Modulus,
P = keyInfo.P,
Q = keyInfo.Q
});
services.AddIdentityServer()
.AddSigningCredential(rsaSecurityKey)
.AddInMemoryPersistedGrants()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity<User>();
However, when I run Identity Server4 and I get redirected to sign in page from another website, I get the following error:
IDX10630: The '[PII is hidden]' for signing cannot be smaller than '[PII is hidden]' bits. KeySize: '[PII is hidden]'.
Parameter name: key.KeySize
I have to admit, I've been on this all weekend, trying to figure out how to use SigningCredentials and I'm not really sure what I've done wrong above.
c# rsa identityserver4 signing
I'm fairly new to using encryption and rsa tokens and I'm trying to get IDentityServer4 to not use the developersigning, but one of my own. Here is what I have tried so far:
var keyInfo = new RSACryptoServiceProvider().ExportParameters(true);
var rsaSecurityKey = new RsaSecurityKey(new RSAParameters
{
D = keyInfo.D,
DP = keyInfo.DP,
DQ = keyInfo.DQ,
Exponent = keyInfo.Exponent,
InverseQ = keyInfo.InverseQ,
Modulus = keyInfo.Modulus,
P = keyInfo.P,
Q = keyInfo.Q
});
services.AddIdentityServer()
.AddSigningCredential(rsaSecurityKey)
.AddInMemoryPersistedGrants()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity<User>();
However, when I run Identity Server4 and I get redirected to sign in page from another website, I get the following error:
IDX10630: The '[PII is hidden]' for signing cannot be smaller than '[PII is hidden]' bits. KeySize: '[PII is hidden]'.
Parameter name: key.KeySize
I have to admit, I've been on this all weekend, trying to figure out how to use SigningCredentials and I'm not really sure what I've done wrong above.
c# rsa identityserver4 signing
c# rsa identityserver4 signing
asked Nov 12 at 2:22
Bojan
2,08692772
2,08692772
1
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
1
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22
add a comment |
1
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
1
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22
1
1
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
1
1
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Check out my answer below for details on how to generate and wire up X509 certs for signing credentials. Hopefully it's helpful.
How we can replace AddDeveloperSigningCredential on AWS Serverless Lambda environment?
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Check out my answer below for details on how to generate and wire up X509 certs for signing credentials. Hopefully it's helpful.
How we can replace AddDeveloperSigningCredential on AWS Serverless Lambda environment?
add a comment |
up vote
0
down vote
Check out my answer below for details on how to generate and wire up X509 certs for signing credentials. Hopefully it's helpful.
How we can replace AddDeveloperSigningCredential on AWS Serverless Lambda environment?
add a comment |
up vote
0
down vote
up vote
0
down vote
Check out my answer below for details on how to generate and wire up X509 certs for signing credentials. Hopefully it's helpful.
How we can replace AddDeveloperSigningCredential on AWS Serverless Lambda environment?
Check out my answer below for details on how to generate and wire up X509 certs for signing credentials. Hopefully it's helpful.
How we can replace AddDeveloperSigningCredential on AWS Serverless Lambda environment?
answered Nov 12 at 11:57
mackie
1,8731110
1,8731110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255246%2fidentity-server-4-idx10630-pii-is-hidden%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Well, an easy fix is to just call '[PII is hidden]' followed by '[PII is hidden]',
– James K Polk
Nov 12 at 3:50
@JamesKPolk I don't know what you mean by that
– Bojan
Nov 12 at 4:00
1
You can see what is hidden: github.com/IdentityServer/IdentityServer4/issues/…
– Ruard van Elburg
Nov 12 at 8:22