草庐IT

certificate-authority

全部标签

Spring Authorization Server 授权服务器

说明SpringAuthorizationServer遵循Oauth2.1和OpenIDConnect1.0,它建立在SpringSecurity之上。最小化项目创建项目要求JDK11以上使用Idea创建一个Maven的SpringBoot(笔者使用的是springboot2.7)项目pom需要引入AuthorizationServer的配置org.springframework.securityspring-security-oauth2-authorization-server0.3.1复制代码完整的pom.xml文件如下:4.0.0org.springframework.bootspri

解决python报错[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed:

>>>model=torch.hub.load('ultralytics/yolov5','yolov5s')Traceback(mostrecentcalllast):File"/myconda/envs/py37/lib/python3.7/urllib/request.py",line1350,indo_openencode_chunked=req.has_header('Transfer-encoding'))File"/myconda/envs/py37/lib/python3.7/http/client.py",line1277,inrequestself._send_reques

ios - Apple Health Kit 错误 Domain=com.apple.healthkit Code=5 “Authorization not determined”

在实际尝试访问用户的出生日期和生物性别之前,我已经确定了授权。但它适用于模拟器。但不适用于iphone和配对watch。letbirthdayType=HKQuantityType.characteristicType(forIdentifier:HKCharacteristicTypeIdentifier.dateOfBirth)letbiologicalSexType=HKQuantityType.characteristicType(forIdentifier:HKCharacteristicTypeIdentifier.biologicalSex)letquantityType

Spring Authorization Server入门 (十六) Spring Cloud Gateway对接认证服务

前言        之前虽然单独讲过SecurityClient和ResourceServer的对接,但是都是基于Springwebmvc的,Gateway这种非阻塞式的网关是基于webflux的,对于集成Security相关内容略有不同,且涉及到代理其它微服务,所以会稍微比较麻烦些,今天就带大家来实现Gateway网关对接OAuth2认证服务。Gateway对接说明身份问题        在本次示例中网关既是客户端(OAuth2ClientServer)又是资源服务(OAuth2ResourceServer),Client服务负责认证,Resource负责鉴权,这样如果有在浏览器直接访问网关

spring-authorization-server (1.1.1)自定义认证

maven版本(有部分没有改)gradle版本(全部最新修改)前言注意:我本地没有生成公钥和私钥,所以每次启动项目jwkSource都会重新生成,导致之前认证的token都会失效,具体如何生成私钥和公钥以及怎么配置到授权服务器中,网上有很多方法自行实现即可之前有个项目用的0.0.3的,正好最近想研究研究,所以就去了官网看文档研究了一下,1.1.1基于的事security6.x的版本,security6与5.7之前的版本有很大的差别,废话不多说,直接上代码(代码中也有一些注释)最基础的配置官网都有,这里不去体现,主要体现功能:自定义认证和授权自定义端点拦截器持久化到数据库版本依赖项版本sprin

【解决】Error response from daemon: Get "https://xxx.xx.xx.xxx/v2/": x509: certificate signed by unknown...

【解决】Errorresponsefromdaemon:Get"https://xxx.xx.xx.xxx/v2/":x509:certificatesignedbyunknownauthority登陆私有harbor时报错如下:dockerloginxxx.xx.xx.xxxUsername:xxxxPassword:xxxxErrorresponsefromdaemon:Get"https://xxx.xx.xx.xxx/v2/":x509:certificatesignedbyunknownauthority原因大概是docker默认支持https的协议,而私有库是http的协议。win

undefined reference to `dlopen‘ ‘SSL_library_init‘ `X509_certificate_type‘

使用Crow的时候需要注意crow依赖asio依赖OpenSSL,asio要求1.22以上版本,我使用的是1.26.0;这个版本的asio要求OpenSSL是1.0.2,其他版本我得机器上编不过,ubuntu上默认带的OpenSSL是1.1.1;所以我下载了OPENSSL1.2.0重装,地址:https://www.openssl.org/source/old/编译cpp启用Crow的SSL时会出现一些问题:比如:1undefinedreferenceto`SSL_library_init’出现这个提示需要在编译时指定链接crypto和ssl库2undefinedreferenceto`dlo

docker login harbor出现错误信息x509: certificate relies on legacy Common Name field, use SANs instead

x509:certificatereliesonlegacyCommonNamefield,useSANsinstead参考文档配置证书:Harbordocs|ConfigureHTTPSAccesstoHarbor(goharbor.io)

python3/pip3 SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

环境:macos背景:电脑之前安装的是python3.9,现在升级到python3.10。从python官网下载macos版本的python3.10pkg。双击安装。程序使用aiohttp访问ebay。出错:aiohttp.client_exceptions.ClientConnectorCertificateError:Cannotconnecttohostwww.ebay.com:443ssl:True[SSLCertVerificationError:(1,'[SSL:CERTIFICATE_VERIFY_FAILED]certificateverifyfailed:unabletoge

微信小程序 快速获取手机号 getphonenumber fail privacy permission is not authorized, errno: 104

getphonenumberfailprivacypermissionisnotauthorized,errno:104problem小程序体验版快速获取手机号注册发现这个报错:getphonenumberfailprivacypermissionisnotauthorized,errno:104手头2个微信号可以测试1个微信号可以正常,另1个微信号失败reason常见说法:微信小程序号没有认知(实际我们的小程序已经认证了)solution后来解决:[ios]微信版本升级(8.0.39->8.0.40);[android]将失败的微信号退出后再次登录就好了;