Porteus v4.0 - weird error with OpenSSL

Technical issues/questions of an intermediate or advanced nature.
glestwid
Samurai
Samurai
Posts: 182
Joined: 09 Jan 2018, 20:05
Distribution: Porteus-XFCE 5.0 i586

Porteus v4.0 - weird error with OpenSSL

Post#1 by glestwid » 23 Sep 2020, 17:36

root@porteus:/mnt/sda1/porteus/base# openssl version
OpenSSL 1.0.2o 27 Mar 2018
root@porteus:/mnt/sda1/porteus/base# openssl req -new -out wso2-study1.csr -newkey rsa:2048 -nodes -sha256 -keyout wso2-study1.key -config /tmp/req.conf
Error Loading extension section v3_req
2828282292:error:0D06407A:asn1 encoding routines:a2d_ASN1_OBJECT:first num too large:a_object.c:108:
2828282292:error:2206706E:X509 V3 routines:V2I_EXTENDED_KEY_USAGE:invalid object identifier:v3_extku.c:142:section:,name:clientAtuth,value:
2828282292:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:v3_conf.c:95:name=extendedKeyUsage, value=serverAuth, clientAtuth
My /tmp/req.conf is the following
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = RU
ST = Moscow
L = Moscow
O = "Credit Swiss"
OU = IT
CN = wso2.endocs.ru
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth, clientAtuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = wso2.endocs.ru

What does it want ? Any ideas?