To create a certificate to seal a managment pack.
1.) Generate a key file –
D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>sn -k mykey.snk
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Key pair written to mykey.snk
2.) Extract Public key from the key file into another file –
D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>sn -p mykey.snk outfile
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Public key written to outfile
3.) Extract the public key token (64 bit hash of the public key) from Public Key –
D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>sn -tp outfile
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Public key is
0024000004800000940000000602000000240000525341310004000001000100ad4e339a2fde25 a78de93a363eebbaf755c043fdb44d8ce64a732b0cb24f66cddcbb97bd3966b375d04bef871d10 c05cbf5213a02ef472feedf4f4855a8a3c5d0116326845d1d2b744b1245d7a24d0ad78d64e056911f810e165dd4aed6d05994f2a307a3ecc0a50bd7c5aa16afe123bdd0dc3f9c8aa06d14133fb9a4cf4f7a2
Public key token is 36c8fd01b281c793
Now u can use the key file (mykey.snk) to seal your MP using MPSeal utility.
Seal your management pack
MPSeal.exe Microsoft.SQLServer.xml /I c:\mps /Keyfile mykey.snk /Company “Microsoft Corporation”
No comments yet.