AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 06.08.2012, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Signing ISV Models
Источник: http://blogs.msdn.com/b/axsupport/ar...sv-models.aspx
==============

As an ISV, you will want to sign your models so your
customers know who made the models and the models cannot be tampered with. The
steps for strong naming your model and Authenticode signing it are:
  1. Generate a key pair file using Visual Studio’s strong
    naming tool. If you have Visual Studio installed go to Start >
    Programs > Microsoft Visual Studio 2012 > Visual Studio Tools > Visual
    Studio Command Prompt. In the VS command
    prompt enter something like this:
    1. sn.exe –k YourKeyPair.snk
  2. Acquire a signing certificate from a company that issues
    certificates, I believe this also comes with a private key. For more
    information do a Bing search for
    Authenticode signing and you'll find companies that issue these certificates.
  3. Once you have the certificate open certificate manager by
    going to a Windows command prompt and typing certmgr.msc.
  4. In the certificate manager that opens, go to Trusted Root
    Certification Authorities. In there is a
    Certificates directory, right-click on the Certificates directory and choose
    All Tasks > Import. Go through the wizard to import your certificate.
  5. In AX create your model.
  6. In Windows go to Administrative Tools > Microsoft
    Dynamics AX 2012 Management Shell. Run
    axutil to export the file using the key.
    To do this in the management shell prompt type something like:
    1. axutil export /key:YourKeyPair.snk /file:YourModel.axmodel /model:YourModel
  7. Sign the model using the signtool from VS and the pfx
    file from step #2. Go to Start >
    Programs > Microsoft Visual Studio 2012 > Visual Studio Tools > Visual
    Studio Command Prompt. In the VS command
    prompt enter something like this
    1. signtool sign /f c:\Files\IsvTestCert.pfx /p PasswordForKey c:\Files\YourModel.axmodel
    2. The Sign Tool should return "Successfully signed: c:\Files\YourModel.axmodel
  8. In Windows go to Administrative Tools > Microsoft
    Dynamics AX 2012 Management Shell. Use
    axutil to import the model file. You can
    force it to check the signing so in the command prompt enter something like
    this:
    1. axutil import /file:c:\Files\YourModel.axmodel –forcesigncheckdialogs
There are a couple of different articles you can look at for
more information on this topic. They are:

http://blogs.msdn.com/b/mfp/archive/...ls-part-2.aspx

http://msdn.microsoft.com/en-us/library/hh352314.aspx




Источник: http://blogs.msdn.com/b/axsupport/ar...sv-models.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Issues when working with ISV models Blog bot DAX Blogs 0 21.03.2012 14:11
axdaily: Models in AX 2012 Blog bot DAX Blogs 0 28.04.2011 04:27
mfp: AX models - Part 4 - Working with models inside MorphX Blog bot DAX Blogs 4 26.11.2009 16:55
mfp: Introducing AX models - Part 3 Blog bot DAX Blogs 0 16.10.2009 16:05
mfp: Introducing AX models - Part 2 Blog bot DAX Blogs 0 03.10.2009 01:06

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:01.