Safari doesn't detect my Extension Certificate

空扰寡人 提交于 2019-12-03 14:50:26

I was facing the similar problem. After struggling a lot the following worked for me:

  1. Install (Windows Server 2003 service pack 2) Administration Tools pack as shown on “Generate a Certificate Signing Request” screen shown by Safari Extension Certificate assistant: http://www.microsoft.com/download/en/confirmation.aspx?id=6315
  2. Install IIS resource kit for SelfSSL- http://www.microsoft.com/download/en/confirmation.aspx?id=17275
  3. As indicated by Safari Extension certificate assistant, save the following as certreq.txt --https://devimages.apple.com.edgekey.net/safari/files/certreq.txt
  4. Run cmd, and then change directory to where you saved certreq.txt
  5. On command prompt type: certreq –new certreq.txt newcsr.pem
  6. Press Continue on the Safari Assistant screen, and upload this newcsr.pem
  7. It will generate a certificate that you need to install by double-clicking on the installed file.

You are done!

Go to Develop (in Safari menu bar)>> Show Extension Builder >> Click + and select new extension.

By generating the cert request on another machine you don't have the private key associated with the cert on your own. Generate a cert request on your Win7 machine now, go get a new cert from Apple, and it should work fine.

To use the certificate on Windows, I needed to click on the file that was created (safari_identity.cer). That installed the certificate in the Windows Certificate store. Rrun certmgr.msc and look under the Personal..Certificates folder to see it. My installed cert looked something like this in the Microsoft Management Console for Certificates: "Safari Developer: (xxxxxxxxxxx) me@zzz.com".

this is an answer for Mac users who may be experiencing this problem.

Once you install your certificate, double click it, go under Trust, and set Always Trust for When using this certificate. Your certificate should work then.

It's got something to do with the private key - On me Vista it says CertReq: Request Created and it installs fine, but then on Windows 7 it just creates the file and when you look at the info before/after install it doesn't display that it is associated with the private key on the computer. Very confused I am.

when you enter something like "certmgr.msc" in the run command in window, you will get to see something like this:

So using the certificate consists of the following steps:

  1. first save the file and run the command in cmdd.exe as directed in the developer certificate generator in extension certificate developer.
  2. when you are done, check the certmgr [shown above in the image] and see a certificate named safari developer installed somewhere near Certificate Enrollment Requests. cut the certificate and paste one copy inside trusted root certification Authorities and another inside Personal.
  3. then generate the csr file and install the file inside Personal folder and trusted root certification Authorities folder.
  4. extension builder will recognize the certificate.

Best of luck.

If the certificate has an incomplete chain, it may be necessary to install the certificates on Apple's certificate page . I believe "Worldwide Developer Relations" (and possibly the 2 root certificates) are necessary for Safari Development.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!