Laragon中的自签名SSL证书 [英] Self-signed SSL certificate in Laragon

查看:648
本文介绍了Laragon中的自签名SSL证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Laragon Apache上的Laravel中开发了一个Web应用程序.但是,此应用仅在组织机构中可用,并且需要与其他组织接触.我们的Miscrosft小组(系统在Microsoft VM上运行)向我发送了3个.crt文件(中级,根目录和ServerCertificate).我没有在Microsoft VM上使用IIS.

I developed a web app in Laravel on the Laragon Apache. But this app is only available within the oraganization, and need to be exposed to the rest. Our Miscrosft team (as the system is running on a Microsoft VM) send me a 3 .crt files (Intermediate, Root and ServerCertificate). I am not using the IIS on the Microsoft VM.

我如何安装Web应用程序可以暴露给世界的证书(https).在Laragon上启用了SSL.

How do I install the certificates that the web app can be exposed (https) to the world. SSL is enabled on Laragon.

推荐答案

使我的Laragon Localhost网络SSL安全通过 AFFA Social https://www.affasocial.com 100%免费SSL

Make my Laragon Localhost web SSL Secure SOLVED by AFFA Social https://www.affasocial.com 100% FREE SSL

请记住,必须将路由器设置为允许端口80和443以及其他任何端口 您正在基本使用端口转发的其他端口.

Keep in mind your router must be set to allow port 80 and port 443 and any other ports you are using Basically Port Forwarding.

首先,我们使用此教程链接Laragon Localhost教程来获取SSL 为Localhost工作 https://www.webtechriser.com/how-to- add-ssl-in- localhost-using-laragon

First, we use this tutorial link Laragon Localhost Tutorial to get SSL working for Localhost https://www.webtechriser.com/how-to-add-ssl-in- localhost-using-laragon

一旦您安装了Laragon并遵循了本教程,便可以访问 https://localhost :)

Once you have installed Laragon and followed the tutorial you can access https://localhost :)

现在让我们将localhost设为 https://webaddress.com

Now let's make that localhost a https://webaddress.com

首先,您需要一个解析为计算机IP地址的DNS或主机名

First, you need a DNS or Hostname that resolves to your computer's IP address

如果您没有站点地址.在此链接中,您可以创建一个非常 快速 https://www.dynu.com/我的免费主机名 创建一个帐户并转到控制面板,它是小齿轮图标 右上方的工具栏.

If you do not have a siteaddress.??? in this link you can create one very quickly https://www.dynu.com/ FREE HOSTNAME FOR MY LOCALHOST you simply create an account and go to the control panel it is the little gear icon upper right toolbar.

然后在此窗口中选择"DNS服务"图标,从 选项完成后,您可以输入 http://hostname .和默认 Laragon页面应该加载.

Then select DNS Services Icon in this window add a desired hostname from the options once this is done you can type http://hostname.??? and the default Laragon page should load.

完成此操作后,停止Laragon完全关闭/退出该应用程序,以便Laragon 不能全部运行.

Once this is done STOP Laragon close/exit the app altogether so Laragon is not running al all.

现在,我们获得了SSL文件,以将Laragon SSL用作主机名.???.

Now we get the SSL files to make Laragon SSL for the hostname.???.

转到 https://www.sslforfree.com/ SSL免费链接创建一个帐户,然后 登录,然后在地址窗口中输入您的网站,然后单击创建 免费的SSL证书.

Go to https://www.sslforfree.com/ SSL FOR FREE LINK create an account then log in and then ENTER YOU WEBSITE in the address window and click Create Free SSL Certificate.

现在,在本教程中,我们将使用中间选项手动验证",然后 向下滚动并单击手动验证,然后按照说明进行操作:

Now in this tutorial we will use the middle option Manual Verification then scroll down and click manual verification then follow the instructions:

上传验证文件

按照网站上指示的步骤进行操作

Follow the steps as indicated on the site

下载文件#1

在您的域中创建一个名为".well-known"的文件夹(如果尚未创建) 存在.如果您使用Windows,则可能必须在文件夹末尾添加一个点 以便创建一个在开头带有点的文件夹.

Create a folder in your domain named ".well-known" if it does not already exist. If you use Windows you may have to add a dot at the end of the folder name in order to create a folder with a dot at the beginning.

在您的域中的".well-known"下创建另一个名为"acme- 挑战"(如果尚不存在

Create another folder in your domain under ".well-known" named "acme- challenge" if it does not already exist

将下载的文件上传到"acme-challenge"文件夹 通过在浏览器中访问以下链接,验证上传是否成功

Upload the downloaded files to the "acme-challenge" folder Verify successful upload by visiting the following links in your browser

示例您的地址将有所不同 http://affamusicfiles.noip.cc/.well- 已知/acme挑战/N9m8nTNlDC25ZvYv7VWzUyeSZ84-XVABx3GvTid1sxA 如果文件没有显示随机的字母数字字符或显示错误 然后重新检查您是否在正确的位置上传.另外,请尝试查看 上面的页面源(右键单击然后单击查看页面源") 链接,以确保除了验证文件内容外,没有其他内容显示. 如果使用IIS,则可能必须更改服务器配置,以便文件 没有扩展名(或通配符MIME类型)的文本/纯文本. 如果不确定,请与您的房东联系.

Example your address will be different http://affamusicfiles.noip.cc/.well- known/acme-challenge/N9m8nTNlDC25ZvYv7VWzUyeSZ84-XVABx3GvTid1sxA If the files do not show random alphanumeric characters or shows an error then recheck that you are uploading in the correct place. Also, try viewing the page source (Right-click then click "view page source") of the above links to make sure nothing else shows up but the verification file contents. If you use IIS then you may have to change your server config so that files without an extension (or the wildcard MIME type) serves as text/plain. Contact your host if you are unsure.

现在,点击下面的下载SSL证书.

Now Click Download SSL Certificate below.

下载将包含3个文件 ca_bundle.crt certificate.crt privacy.key

The download will consist of 3 files ca_bundle.crt certificate.crt privacy.key

现在将certificate.crt和privacy.key复制到c:\ laragon \ etc \ ssl文件夹中 然后在该文件夹中删除laragon.crt和laragon.key然后重命名 将certificate.crt更改为laragon.crt,然后将privacy.key更改为laragon.key,然后将每个 文件为只读.

Now copy certificate.crt and privacy.key to the c:\laragon\etc\ssl folder then in that folder delete laragon.crt and laragon.key then rename certificate.crt to laragon.crt then privacy.key to laragon.key then make each file read-only.

接下来将ca_bundle.crt复制到C:\ laragon \ bin \ laragon \ utils,然后删除 curl-ca-bundle.crt并将ca_bundle.crt重命名为curl-ca-bundle.crt并进行 该文件为只读.

Next copy the ca_bundle.crt to C:\laragon\bin\laragon\utils then delete the curl-ca-bundle.crt and rename ca_bundle.crt to curl-ca-bundle.crt and make the file readonly.

现在启动Laragon,然后在浏览器中输入主机名 https://whatever.com 和BAM,您会在本地Laragon页面上看到SSL https://hostname .??是安全的.

Now start Laragon and in your browser type your hostname https://whatever.com and BAM u see the local Laragon page as SSL https://hostname.??? is Secure.

请记住,我们使用的选项要求您每90个续订这3个文件 天.随时尝试使用FTP选项,我相信您仍然需要重命名 上面步骤中所述的文件.

Keep in mind the option we used requires you to renew these 3 files every 90 days. Feel free to try the FTP option I believe you will still need to rename the files as noted in the steps above.

您还可以每年以低至$ 8.00的价格购买单个站点SSL,但是 仍然需要按照本教程中的说明重命名文件.

you can also purchase a single site SSL for as little as $8.00 a year but will still need to rename the files as stated in this tutorial.

执行此操作后请紧记 https://localhost 将不起作用,但是 https://主机名.将可以正常工作,因为它应该享受免费的SSL Laragon.

keep in mind after we do this https://localhost will not work but tthe https://hostname.??? will work as it should Enjoy FREE SSL Laragon.

很可能不需要执行此操作 ---------如果由于某种原因,此操作失败了 Laragon首选项将自动虚拟主机{name} .local更改为{name} .test 取消选中"Auto Virtua主机",然后将其放回去,这将重新加载 服务器,一切正常.

LIKELY WILL NOT NEED TO DO THIS --------- If for some reason this fails in Laragon preferences change the auto virtual host {name}.local to {name}.test uncheck the Auto Virtua Host then put the check back this will reload the server and everything should work fine.

这篇关于Laragon中的自签名SSL证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆