mas dai na hora de compilar deu esse erro, aqui e não sei o que é...
Código:
[root@Daniel ~]# cd /usr/src
[root@Daniel src]# ./configure --disable-lzo
checking for ifconfig... /sbin/ifconfig
checking for ip... /sbin/ip
checking for route... /sbin/route
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@Daniel src]#
[root@Daniel src]#
falem, a minha lingua, por favor é a minha primeira fez que to usando linux...obrigado...
Registrado em: Sep 27, 2006 Mensagens: 105 Localização: Santa Maria - RS
Enviada: Ter Nov 07, 2006 4:39 pm Assunto:
me surgiu uma duvida...
o que to instalando seria o servidor do vpn, correto?
to configurando ainda... (fiz uma cagada, deinstalei o openssl, e o fedora fico todo errado, to instalando o fedora novamente, hehehe)
e teria como fazer as estações conectar (que são windows), no linux normalmente??
Registrado em: Oct 22, 2004 Mensagens: 2143 Localização: Salvador - Bahia
Enviada: Ter Nov 07, 2006 5:40 pm Assunto:
A vpn funciona da seguinte forma, com chave no servidor para dar o acesso e uma chave para o cliente poder acessar. Você tem que fazer uma chave tipo:
-rw-r--r-- 1 root root 1606 Out 23 11:24 matriz-joao-ca.crt
-rw-r--r-- 1 root root 1679 Out 23 11:24 matriz-joao-ca.key
-rw-r--r-- 1 root root 2123 Out 23 13:16 matriz-joao.conf
-rw-r--r-- 1 root root 4922 Out 23 12:40 matriz-joao.crt
-rw-r--r-- 1 root root 1675 Out 23 12:35 matriz-joao.key
-rw-r--r-- 1 root root 424 Out 23 12:12 matriz-joao.pem
-rwx------ 1 root root 65 Out 23 13:17 matriz-joao.up
Esses arquivos foram criados com os comandos que existem no tutorial que você esta seguindo. Lembre-se de criar no arquivo: vim /usr/share/ssl/openssl.cnf (ANTES DE QUALQUER COISA OS -ca. Veja abaixo como ficam:
certificate = $dir/matriz-joao-ca.crt # The CA certificate
private_key = $dir/matriz-joao-ca.key # The private key
Somente. _________________ Cristiano Furtado dos Santos
Gerente de Projetos de SL
Embaixador do Projeto Fedora Brasil.
Pagina Pessoal: http://jasonnfedora.eti.br
Registrado em: Sep 27, 2006 Mensagens: 105 Localização: Santa Maria - RS
Enviada: Ter Nov 07, 2006 7:01 pm Assunto:
jasonn...esta dando erro quando estou tentando gerar as chaves para os clientes....
Código:
[root@Daniel Certificados]# openssl req -nodes -new -x509 -keyout matriz.key -out matriz.crt
Generating a 1024 bit RSA private key
..........................................++++++
......++++++
writing new private key to 'matriz.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) [GB]:br
State or Province Name (full name) [Berkshire]:
[root@Daniel Certificados]# openssl req -nodes -new -x509 -keyout matriz.key -out matriz.crt
Generating a 1024 bit RSA private key
..++++++
.............................++++++
writing new private key to 'matriz.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) [GB]:BR
State or Province Name (full name) [Berkshire]:RIO GRANDE DO SUL
Locality Name (eg, city) [Newbury]:SANTA MARIA
Organization Name (eg, company) [My Company Ltd]:APROQUIMICA
Organizational Unit Name (eg, section) []:MATRIZ
Common Name (eg, your name or your server's hostname) []:VPN
Email Address []:daniel@belgaquimica.com.br
[color=red][root@Daniel Certificados]# openssl ca -out matriz.crt -in matriz.csr
Using configuration from /etc/pki/tls/openssl.cnf
Error opening CA private key ../../CA/private/cakey.pem
2816:error:02001002:system library:fopen:No such file or directory:bss_file.c:352:fopen('../../CA/private/cakey.pem','r')
2816:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:
unable to load CA private key
[root@Daniel Certificados]# [/color]
Registrado em: Sep 27, 2006 Mensagens: 105 Localização: Santa Maria - RS
Enviada: Ter Nov 07, 2006 7:40 pm Assunto:
ah...me irritei aqui e fiz cagada eu acho....
assim....eu configurei o openssl.cnf
no diretorio
/usr/share/openvpn/easy-rsa/2.0
mas dai....para dar tal comando ele esta pegando o openssl.cnf do seguinte diretorio
/etc/pki/tls
......olha o que eu fiz...hehehe
peguei o openssl.cnf que esta configurado e substitui pelo o que estava pasta "/etc/pki/tls", agora me aparece isso aqui...
Código:
[root@Daniel Certificados]# openssl req -nodes -new -x509 -keyout my-ca.key -out my-ca.crt -days 1095
Unable to load config info from /etc/pki/tls/openssl.cnf
[root@Daniel Certificados]#
nem vou mexer, mais antes que eu piore a situação, outra será que não tem como você me mandar a sua configuração?