Hi guys, I'm trying to create an https server with indy and lazarus and I've found some code for testing. But I clash with the first obstacle, I never created a self-signed https certificate. If you look at the piece of code below you will see that there are 3 files to go to the indy component. How can I generate them with openssl?
Thank you
rootdir:='cert' + System.DirectorySeparator ;
ServerSSLIOHandler:=TIdServerIOHandlerSSLOpenSSL.Create(nil);
ServerSSLIOhandler.SSLOptions.RootCertFile:=rootdir+'ca.cert.pem';
ServerSSLIOhandler.SSLOptions.CertFile:=rootdir+'localhost.cert.pem';
ServerSSLIOhandler.SSLOptions.KeyFile:=rootdir+'localhost.key.pem';
ServerSSLIOhandler.SSLOptions.Method:=sslvSSLv23;
ServerSSLIOhandler.SSLOptions.Mode:=sslmServer;
ServerSSLIOhandler.OnGetPassword:=NIL;
ServerSSLIOhandler.OnVerifyPeer:=OnVerifyPeer;