Salve sto cercando di utilizzare il comando
openssl ca -in certificato.csr
Ma mi genera sempre questo errore e non capisco come risolverlo
Using configuration from /usr/lib/ssl/openssl.cnf
Can't open /home/studente/Scrivania/CA_ROOT/demoCA/private/chiavi.key for reading, No such file or directory
140677432394176:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('/home/studente/Scrivania/CA_ROOT/demoCA/private/chiavi.key','r')
140677432394176:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
unable to load CA private key
Il file
openssl.conf l'ho configurato così:
####################################################################
[ ca ]
default_ca = CA_ROOT # The default ca section
####################################################################
[ CA_ROOT ]
dir =/home/studente/Scrivania/CA_ROOT/demoCA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject= no # Set to 'no' to allow creation of
# several certs with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crlnumber = $dir/crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/chiavi.key # The private key