Shouldn't CSRs automatically add default version?
Shouldn't CSRs automatically add default version?
Classic | List | Threaded |
Shouldn't CSRs automatically add default version?
3 posts
|
(I originally sent this to openssl-users but it is a question about
the implementation of OpenSSL more than the usage so I'm reposting here.) I'm programmatically generating CSRs per the example in 10.3.1 of -----BEGIN CERTIFICATE REQUEST----- OpenSSL's command line asn1parse tool reads this just fine. Peter 0 623: SEQUENCE { This could be an error with Mr. Gutmann's tool but the fact that http://stackoverflow.com/questions/15294964/windows-2008r2-ca-openssl-csr-error-parsing-csr-asn1-bad-value-met and added a call to X509_REQ_set_version(req, 0). Now Windows Crypto Section 4.1 of RFC 2986 says, "Certification request information shall Kind regards,
Remove Ads
|
Re: [openssl-dev] Shouldn't CSRs automatically add default version?
221 posts
|
That CSR is clearly invalid, because one of its objects isn't properly
DER encoded. The INTEGER encoding its version has a length equal to zero, and this isn't permitted by X.690 (BER/DER/CER encoding): "8.3.1 The encoding of an integer value shall be primitive. The contents octets shall consist of one or more octets." OpenSSL could set the version to 0 by default when creating the X509_REQ -- Le 16/03/2013 19:22, Ken Smith a écrit : > -----BEGIN CERTIFICATE REQUEST----- > MIICbzCCAVcCADArMSkwJwYDVQQDEyBiYjA2NGU1MDIwMTcwOTE4MTY0ZTlmMDY2 > [...] > 0s8Z > -----END CERTIFICATE REQUEST----- > [...] > Section 4.1 of RFC 2986 says, "Certification request information shall > have...CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) > } (v1,...),". Shouldn't OpenSSL be adding a version with a default > value of 0 even when X509_REQ_set_version is not called?
... [show rest of quote]
______________________________________________________________________ |
Re: [openssl-dev] Shouldn't CSRs automatically add default version?
3 posts
|
On Mon, Mar 18, 2013 at 5:42 AM, Erwann Abalea
<[hidden email]> wrote: > That CSR is clearly invalid, because one of its objects isn't properly DER > encoded. This is precisely my point. All of the OpenSSL calls I make succeed - the call to PEM_write_X509_REQ should fail indicating that it can't As it stands, it is possible to sail through successful calls to the :{>
Remove Ads
|
Shouldn't CSRs automatically add default version?相关推荐
- Eclipse执行import命令导入maven项目时报错:Add a version or custom suffix using Name template in Advanced set...
新建了两个maven项目在E盘workspace目录,后面移到workspace/app_engine目录下提交svn,再通过Eclipse的File->import导入时报错了: Projec ...
- 添加默认网关route add default gw
如果碰到连接时,无法determine IP address,即网关无法解析地址的情况. 需要手动配置路由网关的指向.先找到网关的指向点: ifconfig里面看ppp0的destination,或者 ...
- Eclipse 导入Maven项目,提示Project .. already exists Add a version or custom suffix using “Name template“
今天从svn 上检出项目至本地的Eclipse workspace 工作空间,提示如下截图错误: Project .. already exists Add a version or custom s ...
- Unknown version string [4.0]. Default version will be used.
最近写了一个项目 ,项目完成要发布出现Unknown version string [4.0]. Default version will be used.问题,找了半天还以为是tomcat版本的问题 ...
- svn add Default@2x.png的文件含有@的文件名注意事项
为什么80%的码农都做不了架构师?>>> iOS的Icon里面,包含@符号 ,svn add Icon@2x.png,没法加进去. 解决的办法是,在文件名最后加一个@,例如 s ...
- wsl set default version: 请启用虚拟机平台 windows 功能并确保在 bios 中启用虚拟化
前段时间电脑偶然间恢复了出厂设置,之前安装的docker之类的东西都得重来了. 既然要安装docker,肯定得用到WSL,于是就想要先把WSL的版本切换到2. 在运行了如下命令后出现了这么个问题 ...
- 有没有办法为Node.js项目自动构建package.json文件
本文翻译自:Is there a way to automatically build the package.json file for Node.js projects Is package.js ...
- C++11中default的使用
在C+11中,对于defaulted函数,编译器会为其自动生成默认的函数定义体,从而获得更高的代码执行效率,也可免除程序员手动定义该函数的工作量. C++的类有四类特殊成员函数,它们分别是:默认构造函 ...
- Linux下route add 命令加入路由列表
route add命令的主要作用是加入静态路由,通常的格式是: route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 參数含义:d ...
最新文章
- 快速了解微信小程序的使用,一个根据小程序的框架开发的todos app
- 怎样快速学习html5,如何快速学习HTML5?带你了解HTML5学什么?
- javaweb乱码以及ajax乱码
- python基础单词-学习Python必背的初级单词有哪些?
- 全面对比 MATLAB、Julia、Python,谁在科学计算中更胜一筹?
- JAVA设计模式之【建造者模式】
- c++五子棋_Java五子棋实现
- vs2012打包和部署程序成可安装安装包文件(InstallShield
- 直击案发现场!TCP 10倍延迟的真相是?
- 用python编写一个求偶数阶乘的函数_一行Python代码写阶乘函数
- 一提开发满脸泪,不如尬评来赢书 | 张开涛亲笔签名
- 基于51单片机的红外计数器proteus仿真 LCD1602显示原理图程序设计
- 个人对计算机专业的认知
- php 将rgb转cmyk,将CMYK颜色值和RGB颜色相互转换的PHP代码
- 数据库建表语句的使用及简单实战
- [转帖]「白帽黑客成长记」Windows提权基本原理(上)
- Android自定义九宫格图案解锁
- java catch中throw_Java的catch块中throw e和throw new Exception(e)有什么区别?
- grpc进阶篇之resolver
- 【uniapp】解决uni.previewImage图片模糊问题
热门文章
- HTML5--表单标签input新增type值
- sqlite 统计每张表的记录数_Excel单页式人事管理表,档案记录,自带查询统计,简单实用...
- python 创建目录_Python虚拟环境的搭建与使用
- 排序算法系列:选择排序算法
- Oracel 修改约束命令
- 华为平板能运行python吗_我是如何使用华为平板的
- android教育游戏设计方案,基于Android平台的儿童教育游戏的设计与开发
- bgb邻居关系建立模型_学习开发知识图谱中的长期关系依赖
- 华为与思科网络产品详细比较
- log4jdbc oracle,通过weblogic配置log4jdbc数据源,在项目中使用该数据源,输出sql