草庐IT

certification

全部标签

ssl - ListenAndServerTLS 一直失败,错误为 : failed to find any PEM data in certificate input

我从Godaddy为网站购买了SSL证书。我在服务器中添加文件并运行该服务,它只返回一个错误:failedtofindanyPEMdataincertificateinput我使用cat生成了一个包含所有文件的server.pem文件,甚至添加了一个他们为G2证书链提供的godaddypem中间pem文件,什么也没有。catgenerated-private-key.txt>server.pemcat678f65b8a7391017.crt>>server.pemcatgd_bundle-g2-g1.crt>>server.pemcatgdig2.crt.pem>>server.pem

go - 中间服务器注册问题 "local signer policy disallows issuing CA certificate"

我正在尝试设置Fabric根CA和中间CA。环境如下,使用go语言,版本1.7.1。Farbicrootca配置如下,用于Caconstanint以允许此Ca签署其他中间证书。signing:default:usage:-digitalsignatureexpiry:8760hprofiles:ca:usage:-certsignexpiry:43800hcaconstraint:isca:truemaxpathlen:1在路径长度的CSR部分下csr:cn:fabric-root.example.comnames:-C:USST:"NorthCarolina"L:caryO:Hype

firefox - Golang https证书错误: remote error: tls: unknown certificate authority

我已经使用以下方法制作了我的证书和keyopensslreq-newkeyrsa:2048-new-nodes-x509-days3650-keyoutkey.pem-outcert.pem并在我的Golang代码中配置它log.Fatal(http.ListenAndServeTLS(":4201","cert.pem","key.pem",router))在使用chrome访问时运行良好,但在使用firefox访问时在控制台上抛出错误。2018/03/0216:54:11http:TLShandshakeerrorfrom100.67.56.121:54397:remoteerro

google-app-engine - SSL : CERTIFICATE_VERIFY_FAILED on GAE/Go

我正在开发GAE/Go应用程序并尝试从本地开发服务器连接GoogleBigQuery。我的代码是这样的。import("cloud.google.com/go/bigquery""golang.org/x/net/context""google.golang.org/api/option"gaeLog"google.golang.org/appengine/log"newappengine"google.golang.org/appengine")funcMyFunc(c*gin.Context){r:=c.Requestctx:=newappengine.NewContext(r)c

go - 无法连接到代理 "Certificate signed by unknown authority"

我正在尝试通过我的Kubernetes部署中的cloudsql-proxy容器连接到CloudSQL实例。我安装了cloudsql凭据并设置了GOOGLE_APPLICATION_CREDENTIALS的值。但是,我的日志中仍然收到以下错误:2018/10/0820:07:28Failedtoconnecttodatabase:Posthttps://www.googleapis.com/sql/v1beta4/projects/[projectID]/instances/[appName]/createEphemeral?alt=json&prettyPrint=false:oaut

Go:如何向 x509.Certificate 添加扩展名 (subjectAltName)?

我正在创建CA证书。我想添加带有一些值的subjectAltName扩展名,例如电子邮件或crl或公共(public)证书位置等。packagemainimport("crypto/rand""crypto/rsa""crypto/x509""crypto/x509/pkix""encoding/asn1""encoding/pem""fmt""math/big""os""time"//"net"//"strconv")funcmain(){template:=x509.Certificate{}template.Subject=pkix.Name{Organization:[]str

戈朗 : verify x509 certificate was signed using private key that corresponds to the specified public key

我想验证X509证书以确保它是由与公钥相对应的私钥签名的:varpublicKey*rsa.PublicKey=getPublicKey()varcertificate*x509.Certificate=getCertificate()certificate.CheckSignature(...)在我看来,certificate.CheckSignature方法是正确的方法,但我无法弄清楚它需要的参数,并想寻求社区的帮助。顺便说一句,我能够在java中做同样的事情(在两个相邻的项目上工作)。它看起来像这样:RSAPublicKeypublicKey=getPublicKey();X50

git - SourceTree 和 Stash : Unable to get local issuer certificate

我们在Windows2008R2服务器上安装了AtlassianStash,大部分情况下一切都运行良好。我们有一个由本地本地CA颁发的SSL证书和一个DNS条目设置,因此我们可以转到https://stash/并且它工作得很好,除了在Firefox中它会抛出一个警告(相关?)。当使用Atlassian的Sourcetree时,我们可以导航并选择一个存储库,但是当我们尝试克隆它时,我们会收到以下错误:fatal:unabletoaccesshttps://user@url/scm/etc/etc.git:SSLcertificateproblem:unabletogetlocalissu

windows - 无法在具有自签名证书的 Windows 上使用 git 解析 "unable to get local issuer certificate"

我在Windows上使用Git。我安装了msysGit包。我的测试存储库在服务器上有一个自签名证书。我可以毫无问题地使用HTTP访问和使用存储库。移动到HTTPS会出现错误:SSLCertificateproblem:unabletogetlocalissuercertificate.我在Windows7客户端计算机的受信任的根证书颁发机构中安装了自签名证书。我可以在InternetExplorer中浏览到HTTPS存储库URL而没有错误消息。ThisblogpostbyPhilipKelley解释说cURL不使用客户端机器的证书存储。我按照博文的建议创建了curl-ca-bundle

php - Twilio PHP - SSL 证书 : self signed certificate in certificate chain

我在尝试使用他们的PHPlibrary通过Twilio发送消息时遇到此错误。:Fatalerror:UncaughtexceptionServices_Twilio_TinyHttpExceptionwithmessageSSLcertificateproblem:selfsignedcertificateincertificatechainthrowninF:\path\to\site\twilio-php\Services\Twilio\TinyHttp.phponline119我在Windows7上使用wamp。我当然找到了所有其他关于证书错误的帖子。据我所知,通常更新或添加ca