2011-07-28 2 views
1

에서 일부 배경 정보마이크로 소프트의 HealthVault 인증서 PHP 기반 응용 프로그램

나는 마이크로 소프트 헬스 볼트와 상호 작용하도록되어있는 PHP 응용 프로그램에서 일하고 있습니다. https://sourceforge.net/projects/healthvaultphp/에서 Health Vault 라이브러리를 다운로드하고 내 healthvault 테스트 계정에 데이터를 저장할 수있었습니다.

이제 라이브러리에는 "sandbox"app.id, app.cer 등 모든 인증 항목이 포함되어 있습니다. 그래서 내가 겪고있는 문제는 내 PHP 응용 프로그램에 대한 라이브 인증서를 얻는 방법입니다. 필자는 Microsoft에서 makecert.exe 파일을 다운로드하여 인증서를 생성했지만 healthvaultphp 라이브러리에 포함 된 텍스트 파일과 비교하여 이진 파일을 생성합니다.

내 질문에

방법과 어떤 파일을 다음에 가야하나요?

인증/app.cer

인증/app.fp

인증/app.pem

답변

1

나는 완전히 내가이 문제를 해결하는 방법 다음은 ... 여기에이 질문을 게시 한 것을 잊었다 문제 : PHP 파일에

마이크로 소프트의 HealthVault 설정 필요 :

app.pem 
    RSA private key 
app.cer 
    Certificate file 
app.id 
    Application ID 
app.fp 
    Application thumbprint 

생성 된 PEM 및 CER 파일이 시점에서

Download and install Microsoft Healthvault SDK 
    http://msdn.microsoft.com/en-us/healthvault/bb688183 
    Install as an administrator 
Once installed create new application 
    Click ‘Create New Application’ button 
    Uncheck ‘Automatially…website…application’ box 
    Click ‘Create and Register application’ button 
    It will create a certificate name ‘WildcatApp-<appid>’ 
     app.id will contain <appid> 
    At this point you can click on the ‘HealthVault Application Configuration Center’ link and setup your HealthVault application. 
Generate the PFX file 
    Right-click on your ‘Certificate Name’ 
    Click ‘Export public and private keys (.pfx)’ menu item 
    Select the desired location for the .pfx file, preferably in third_party/microsoftHealthVault/authentication 
Converting PFX file to certificate and private key files 
    Do this in your linux vm, you should at this point have access to .pfx file because you put in location mentioned on 3.c 
    You will need to use ‘openssl’ to do the next steps 
    Generate app.cer 
     openssl pkcs12 -in <filename>.pfx -clcerts -nokeys -out app.cer 
     press ‘enter’ when asked for ‘import password’ 
     This file should only contain text starting at ---BEGIN CERTIFICATE--- to ----END CERTIFICATE---- everything before and after should be deleted 
     Now you have app.cer file 
    Generate app.pem 
     openssl pkcs12 -in <filename>.pfx -out app_enc.pem –nocerts 
     press ‘enter’ when asked for ‘import password’ 
     type in your host windows login password for ‘PEM pass phrase’ 
     This will generate an encrypted private key file 
     The encrypted private key file needs to be unencrypted to be able to use in the application 
     openssl rsa -in app_enc.pem -out app.pem 
     Now you have the app.pem file 
Log in to your healthvault configuration screen to get the app id and thumbprint 
    https://config.healthvault-ppe.com/default.aspx 
    Copy the ‘Application Id’ and insert it in the app.id file 
    Click on the ‘Application Id’ 
    Click on the ‘Public certs’ tab 
    Copy the ‘Thumbprint’ and insert it in the app.fp file 

은 app.cer, app.pem, app.id 및 app.fp 파일을 사용할 준비가 된 것입니다.

의 HealthVault 응용 프로그램 구성 https://config.healthvault-ppe.com/default.aspx

의 HealthVault 개발자 센터 http://msdn.microsoft.com/en-us/healthvault/bb688183

의 HealthVault 것은 http://developer.healthvault.com/types/types.aspx

을있는 정의
관련 문제