makecert and creating ssl or signing certificates | brockallen

This makecert script works perfectly to generate a token signing certificate usable with IdentityServer3. For some reason that I’m yet to uncover, the newer Powershell way on Windows 10 generates a cert that the signing piece in IdentityServer does not like. The powershell cert causes an exception like so:

IDX10614: AsymmetricSecurityKey.GetSignatureFormater( ‘http://www.w3.org/2001/04/xmldsig-more#rsa-sha256’ )
threw an exception.
Key: ‘System.IdentityModel.Tokens.X509AsymmetricSecurityKey’\nSignatureAlgorithm: ‘http://www.w3.org/2001/04/xmldsig-more#rsa-sha256’,
check to make sure the SignatureAlgorithm is supported.
Exception:’System.Security.Cryptography.CryptographicException:
Invalid provider type specified.

The original post follows:

I’ve been asked to post my makecert scripts for creating self-signed certificates (one for SSL and the other for signing). I use both of these scripts as .bat files. These scripts accept one …

Source: makecert and creating ssl or signing certificates | brockallen

Advertisements
Posted in Uncategorized
2 comments on “makecert and creating ssl or signing certificates | brockallen
  1. Chris says:

    Any luck getting this to work in Windows 10? I am seeing the same issue.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

  • Comic for May 23, 2017
    Dilbert readers - Please visit Dilbert.com to read this feature. Due to changes with our feeds, we are now making this RSS feed a link to Dilbert.com.
%d bloggers like this: