Re: Help request for authentication with certicates

2021-10-29 Thread Andreas Schneider
On Thursday, October 28, 2021 4:24:14 PM CEST Marco wrote: > SOLVED THANKS TO THAT > > https://archive.libssh.org/libssh/2021-05/002.html Could you improve the documentation in this area and provide patches? Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID:

Re: Help request for authentication with certicates

2021-10-28 Thread Marco
SOLVED THANKS TO THAT https://archive.libssh.org/libssh/2021-05/002.html Best Regards Il giorno gio 28 ott 2021 alle ore 16:01 Marco ha scritto: > Some more considerations from server log of OpenSSH: > > ssh -i priv root@ -o CertificateFile priv-cert.pub > > Accepted certificate ID

Re: Help request for authentication with certicates

2021-10-28 Thread Marco
Some more considerations from server log of OpenSSH: ssh -i priv root@ -o CertificateFile priv-cert.pub Accepted certificate ID "divo" (serial 0) signed by ED25519 CA SHA256: mm_answer_keyallowed: publickey authentication test: ED25519-CERT key is allowed Postponed publickey for root from

Re: Help request for authentication with certicates

2021-10-28 Thread Marco
At server side I have: Accepted certificate ID "divo" (serial 0) signed by ED25519 CA SHA256: mm_answer_keyallowed: publickey authentication test: ED25519-CERT key is allowed Postponed publickey for root from 10.10.70.100 port 50909 ssh2 userauth_pubkey: valid user root attempting public key

Re: Help request for authentication with certicates

2021-10-28 Thread Marco
Hi. You are right. Libssh does not scan automatically for certificate or public key. While OpenSSH does it (or I can force certicate file using "-o CertificateFile" if I remember correctly), with libssh I do this: #include #include #include #include #include #include int main(int argc,

Re: Help request for authentication with certicates

2021-10-27 Thread Jakub Jelen
On 10/27/21 16:26, Marco wrote: Hi all and thanks for attention. I have some difficulties in authentication using certificate from C application using ssh to a server correctly configured, I think. I've generate a private and public key and signed the public with the certification authority

Help request for authentication with certicates

2021-10-27 Thread Marco
Hi all and thanks for attention. I have some difficulties in authentication using certificate from C application using ssh to a server correctly configured, I think. I've generate a private and public key and signed the public with the certification authority private key to have -cert.pub with