Код: Выделить всё
#. ./vars
# ./revoke-full onotole
Using configuration from /usr/local/share/doc/openvpn/easy-rsa/openssl.cnf
DEBUG[load_index]: unique_subject = "yes"
unable to load certificate
29115:error:0906D06C:PEM routines:PEM_read_bio:no start line:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/pem/pem_lib.c:637:Expecting: TRUSTED CERTIFICATE
Using configuration from /usr/local/share/doc/openvpn/easy-rsa/openssl.cnf
DEBUG[load_index]: unique_subject = "yes"
unable to load certificate
29118:error:0906D06C:PEM routines:PEM_read_bio:no start line:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/pem/pem_lib.c:637:Expecting: TRUSTED CERTIFICATE
Код: Выделить всё
# ./build-key-pkcs12 cancer2
Generating a 1024 bit RSA private key
...............++++++
......++++++
writing new private key to 'cancer2.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [RU]:
State or Province Name (full name) [Rostov]:
Locality Name (eg, city) [Rostov-on-Don]:
Organization Name (eg, company) [server]:
Organizational Unit Name (eg, section) []:server
Common Name (eg, your name or your server's hostname) []:cancer2
Email Address [postmaster@xxxx.ru]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:cancer2
Using configuration from /usr/local/share/doc/openvpn/easy-rsa/openssl.cnf
DEBUG[load_index]: unique_subject = "yes"
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'RU'
stateOrProvinceName :PRINTABLE:'Rostov'
localityName :PRINTABLE:'Rostov-on-Don'
organizationName :PRINTABLE:'server'
organizationalUnitName:PRINTABLE:'server'
commonName :PRINTABLE:'cancer2'
emailAddress :IA5STRING:'postmaster@xxxx.ru'
Certificate is to be certified until Dec 4 16:00:12 2019 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
Enter Export Password:
Verifying - Enter Export Password:
# exit
Код: Выделить всё
[xxxx] /usr/local/share/doc/openvpn/easy-rsa/>sh
# . ./vars
# ./revoke-full cancer2
Using configuration from /usr/local/share/doc/openvpn/easy-rsa/openssl.cnf
DEBUG[load_index]: unique_subject = "yes"
Revoking Certificate 1E.
Data Base Updated
Using configuration from /usr/local/share/doc/openvpn/easy-rsa/openssl.cnf
DEBUG[load_index]: unique_subject = "yes"
cancer2.crt: /C=RU/ST=Rostov/O=server/OU=server/CN=cancer2/emailAddress=postmaster@xxxx.ru
error 23 at 0 depth lookup:certificate revoked