当前位置: 首页 > news >正文

网站建设拾金手指下拉二十网站域名的作用是什么意思

网站建设拾金手指下拉二十,网站域名的作用是什么意思,花生壳做网站需要备案,网站访客qq获取原理我有一个需求#xff0c;就是让用户自己把自己的域名绑定我们的提供的AWS服务器。 AWS需要验证证书 上一篇文章中我用php的AcmClient中的requestCertificate方法申请到了证书。 $acmClient new AcmClient([region us-east-1,version 2015-12-08,credentials[/…我有一个需求就是让用户自己把自己的域名绑定我们的提供的AWS服务器。 AWS需要验证证书 上一篇文章中我用php的AcmClient中的requestCertificate方法申请到了证书。 $acmClient new AcmClient([region us-east-1,version 2015-12-08,credentials[// id851725259723,keyAKIA4MTWICPFTJEVQ25E,secret116wUWfw2r4JTSZtlh/sTc462gxgsm4A6YWyvrI]]);$subdomainName ;// 使用 mt_rand() 生成随机数$randomNumber mt_rand(1000, 99999);$result $acmClient-requestCertificate([DomainName $domainName, ValidationMethod DNS,]);$acm_certificate $result-get(CertificateArn); 开始我以为返回的这个 arn:aws:acm:us-east-1:851725259723:certificate\/b59ed66e-edce-40da-8ed7-2f69f535ccc6 就可以配置在域名解析上。当我填上去的时候发现报错了 原来要填的不是这个。 后来我在AWS的后台证书上发现原来证书里有一个domain。通常我们如果是自己来绑定域名到后台来复制过去然后去到域名服务商那里填写信息解析域名就可以了。 但是我们的需求是通过Api获取到CNAME等信息通过接口返回给用户让用户自己去绑定域名。 第一步通过Api接口 requestCertificate方法申请证书是成功了但是requestCertificate的返回里没有我们要的CNAME信息。 通过查看文档发现describeCertificate方法返回了我要的东西。ResourceRecord里面包含的就是。https://docs.aws.amazon.com/zh_cn/acm/latest/APIReference/API_DescribeCertificate.html 于是我写好了调用方法 // echo $acm_certificate;$certificate_detail $acmClient-describeCertificate([CertificateArn $acm_certificate],);返回值是这样的 Model Data ---------- Data can be retrieved from the model object using the get() method of the model (e.g., $result-get($key)) or accessing the result like an associative array (e.g. $result[key]). You can also execute JMESPath expressions on the result data using the search() method.{Certificate: {CertificateArn: arn:aws:acm:us-east-1:851725259723:certificate\/b59ed66e-edce-40da-8ed7-2f69f535ccc6,DomainName: sdafsdfsd.com,SubjectAlternativeNames: [sdafsdfsd.com],DomainValidationOptions: [{DomainName: sdafsdfsd.com,ValidationDomain: sdafsdfsd.com,ValidationStatus: PENDING_VALIDATION,ValidationMethod: DNS}],Subject: CNsdafsdfsd.com,Issuer: Amazon,CreatedAt: 2024-11-13T06:26:1500:00,Status: PENDING_VALIDATION,KeyAlgorithm: RSA-2048,SignatureAlgorithm: SHA256WITHRSA,InUseBy: [],Type: AMAZON_ISSUED,KeyUsages: [],ExtendedKeyUsages: [],RenewalEligibility: INELIGIBLE,Options: {CertificateTransparencyLoggingPreference: DISABLED}},metadata: {statusCode: 200,effectiveUri: https:\/\/acm.us-east-1.amazonaws.com,headers: {x-amzn-requestid: dc2eafd9-f2d0-4ec5-b712-3f863878b1ab,content-type: application\/x-amz-json-1.1,content-length: 695,date: Wed, 13 Nov 2024 06:26:17 GMT,connection: close},transferStats: {http: [[]]}} } 文档上明明说会返回这个值但我实际结果里面没有。怎么办我到处搜索找客服还要花钱。没办法继续折腾。偶然一次发现去掉IdempotencyToken这个动态随机参数时我重复点击请求我写的接口里面包含有requestCertificate和describeCertificate这两个操作突然有一次返回的结果里面有ResourceRecord。 Model Data ---------- Data can be retrieved from the model object using the get() method of the model (e.g., $result-get($key)) or accessing the result like an associative array (e.g. $result[key]). You can also execute JMESPath expressions on the result data using the search() method.{Certificate: {CertificateArn: arn:aws:acm:us-east-1:851725259723:certificate\/36323e6b-44b0-4319-a89c-554f83b4903d,DomainName: dddddddseeddeessssssseee.com,SubjectAlternativeNames: [dddddddseeddeessssssseee.com],DomainValidationOptions: [{DomainName: dddddddseeddeessssssseee.com,ValidationDomain: dddddddseeddeessssssseee.com,ValidationStatus: PENDING_VALIDATION,ResourceRecord: {Name: _aed5251d9f13549ea764739a398b8031.dddddddseeddeessssssseee.com.,Type: CNAME,Value: _3f3f8c3ebb4c32f510b21bbee66da88e.djqtsrsxkq.acm-validations.aws.},ValidationMethod: DNS}],Subject: CNdddddddseeddeessssssseee.com,Issuer: Amazon,CreatedAt: 2024-11-13T09:02:1200:00,Status: PENDING_VALIDATION,KeyAlgorithm: RSA-2048,SignatureAlgorithm: SHA256WITHRSA,InUseBy: [],Type: AMAZON_ISSUED,KeyUsages: [],ExtendedKeyUsages: [],RenewalEligibility: INELIGIBLE,Options: {CertificateTransparencyLoggingPreference: ENABLED}},metadata: {statusCode: 200,effectiveUri: https:\/\/acm.us-east-1.amazonaws.com,headers: {x-amzn-requestid: 8ba40475-79b0-4a0a-adda-c8a32d9357e4,content-type: application\/x-amz-json-1.1,content-length: 952,date: Wed, 13 Nov 2024 09:18:55 GMT,connection: close},transferStats: {http: [[]]}} } sss{} 到此我恍然大悟原来是ResourceRecord要返回的时候还没拿到需要多次请求。直接返回值里有ResourceRecord为止。
http://www.dnsts.com.cn/news/133749.html

相关文章:

  • 网站建设网站源码丽江网站开发找千素网
  • 装修网站平台推荐阿里万网域名注册官网
  • 网站建设及政务工作自查做域名交易网站
  • 受欢迎的网站建设案例叶榭做网站
  • 网站建设和网站开发的区别python 做下载网站
  • 电影网站怎么制作网站内容协议
  • 公司禁用网站怎么做景德镇市场建设局网站
  • 网站分析步骤优对 网站开发
  • 网站和网页的关系白石洲附近做网站公司
  • 南京尘帆网站建设管理咨询公司注册要求
  • 网站报名照片怎么做做短裙的视频网站
  • 100m网站空间服务费网站建设服务合同模板
  • 网站模板制作与安装教程jsp网站服务建设是什么
  • 网站建设数据库软件英文网站后角色管理权限怎么设置?
  • 局域网做网站 内网穿透推广网站平台免费
  • 致设计网站官网网站竞价推广哪个好
  • dedecms 网站安全设置专业做网站建设公司有哪些
  • 不用ftp做网站app页面设计软件
  • 焦作 做 网站黄骅贴吧二手房
  • 龙之向导全球贸易优化公司怎么优化网站的
  • 建立站点的作用wordpress 连接池
  • 咸阳免费做网站公司wordpress本地更换为网站域名
  • 用手机做免费自助网站有专业做网站的
  • line 设计网站seo排名赚挂机
  • 做网站去哪里找客户能看完整舆情报告的软件
  • 免费上外国网站的浏览器房屋装修设计图片欣赏
  • 网站建设安全措施泗阳住房建设局网站
  • 开网站建设公司心得定制app软件开发
  • 手机网站开发指南淄博网络营销网站
  • 中国建设工程招投标网站网页设计中用div做网站例子