C:\temp>MakeCert.exe -pe -ss MY -a sha1 -cy authority -len 2048 -e 12/31/2020 -r -n "CN=My Company (exchange),O=My Company,C=DE" -eku 1.3.6.1.5.5.7.3.3 -sky exchange -len 2048 -sk myTest Succeeded C:\temp>certutil.exe -privatekey -user -exportpfx -p test "My Company (exchange)" My.pfx MY ================ Certificate 57 ================ Serial Number: 4af70427fea87f954aafa04eda12a6f8 Issuer: CN=My Company (exchange), O=My Company, C=DE NotBefore: 06.12.2011 10:42 NotAfter: 31.12.2020 00:00 Subject: CN=My Company (exchange), O=My Company, C=DE Signature matches Public Key Root Certificate: Subject matches Issuer Template: Cert Hash(sha1): a3 11 aa 06 d7 54 0b ae df 09 63 13 59 16 42 f9 03 35 c1 da Key Container = myTest Unique container name: cec75dfbf8be84999a9a29735afdf975_6b95519f-1e19-454d-b320-f38b49e30528 Provider = Microsoft Strong Cryptographic Provider Encryption test passed CertUtil: -exportPFX command completed successfully. C:\temp>sn.exe -p My.pfx My.pub Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Enter the password for the PKCS#12 key file: Public key written to My.pub C:\temp>tlbimp.exe Redemption.tlb /machine:X86 /primary /delaysign /publickey:My.pub /out:Interop.My.dll Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. TlbImp : error TI1000 : The type library importer encountered an unexpected exception: System.Security.SecurityException - Invalid assembly public key. (Exception from HRESULT: 0x8013141E) C:\temp>ChangeKeyProvInfo.exe "My Company (exchange)" The key container has successfully imported the same key for the AT_SIGNATURE usage. The certificale property was successfully changed to use the key with AT_SIGNATURE. C:\temp>ChangeKeyProvInfo.exe "My Company (exchange)" Currently AT_SIGNATURE are used - nothing to do. C:\temp>certutil.exe -privatekey -user -exportpfx -p test "My Company (exchange)" My1.pfx MY ================ Certificate 57 ================ Serial Number: 4af70427fea87f954aafa04eda12a6f8 Issuer: CN=My Company (exchange), O=My Company, C=DE NotBefore: 06.12.2011 10:42 NotAfter: 31.12.2020 00:00 Subject: CN=My Company (exchange), O=My Company, C=DE Signature matches Public Key Root Certificate: Subject matches Issuer Template: Cert Hash(sha1): a3 11 aa 06 d7 54 0b ae df 09 63 13 59 16 42 f9 03 35 c1 da Key Container = myTest Unique container name: cec75dfbf8be84999a9a29735afdf975_6b95519f-1e19-454d-b320-f38b49e30528 Provider = Microsoft Strong Cryptographic Provider Signature test passed CertUtil: -exportPFX command completed successfully. C:\temp>sn.exe -p My1.pfx My1.pub Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Enter the password for the PKCS#12 key file: Public key written to My1.pub C:\temp>tlbimp.exe Redemption.tlb /machine:X86 /primary /delaysign /publickey:My1.pub /out:Interop.My.dll Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. TlbImp : Type library imported to C:\temp\Interop.My.dll