Acme.sh: Only RSA or EC Key is supported.

Created on 16 Apr 2016  路  6Comments  路  Source: acmesh-official/acme.sh

Hi,

So now i wanted to create the Certs again and i am facing a new error.
When i use "acme.sh --issue --apache -d xxxx.com" i am getting this response:
Only RSA or EC key is supported.

Regards,
ReptoxX

Most helpful comment

Okay i works right now, i just removed account.key file and its now generated correctly

Thank You for the fast solution.

All 6 comments

please add --debug

 acme.sh --issue --apache -d xxxx.com  --debug 

Okay i just did.

[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:1:Le_Domain=reptoxx.com
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:2:Le_Alt=no
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:3:Le_Webroot=apache
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:4:Le_Keylength=no
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:5:Le_RealCertPath="no"
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:6:Le_RealCACertPath="no"
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:7:Le_RealKeyPath="no"
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:8:Le_ReloadCmd="no"
[TIME] /root/.acme.sh/reptoxx.com/reptoxx.com.conf:9:Le_RealFullChainPath="no"
[TIME] Backup apache config file='/etc/apache2/apache2.conf'
[TIME] JFYI, Config file /etc/apache2/apache2.conf is backuped to /root/.acme.sh/apache2.conf
[TIME] In case there is an error that can not be restored automatically, you may try restore it yourself.
[TIME] The backup file will be deleted on sucess, just forget it.
[TIME] apacheVer='2.2.22'
[TIME] [warn] The Alias directive in /etc/apache2/apache2.conf at line 279 will probably never match because it overlaps an earlier Alias.
[TIME] [warn] The Alias directive in /etc/apache2/apache2.conf at line 287 will probably never match because it overlaps an earlier Alias.
Syntax OK
[TIME] [warn] The Alias directive in /etc/apache2/apache2.conf at line 279 will probably never match because it overlaps an earlier Alias.
[TIME] [warn] The Alias directive in /etc/apache2/apache2.conf at line 287 will probably never match because it overlaps an earlier Alias.
[TIME] Only RSA or EC key is supported.

And their is one other problem, he did not restore the original apache2.conf after this error.

Regards

Please check your account.key and domain/domain.key file.
I guess either one of the is empty.

Okay i works right now, i just removed account.key file and its now generated correctly

Thank You for the fast solution.

Glad to see it works for you.

I just made a fix for you to restore apache more on error.

5ef501c5ece35003eaa341f1c73b6838b0bbe528

Please update the latest code and try again.

I managed to still get this error. What happened:
I installed Let's Encrypt.
I ran acme.sh --issue ... but realised I forgot to set the DNS username/password variables, so I pressed ^C right after the line "Using CA: https://acme-v02.api.letsencrypt.org/directory" appeared.

Then I set the DNS username/password variables and ran the issue command again. Boom, got this error.
I realise that my configuration was in an error state, but being able to recover automatically would be nice.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiagw picture xiagw  路  3Comments

extensionsapp picture extensionsapp  路  3Comments

extensionsapp picture extensionsapp  路  4Comments

luochenzhimu picture luochenzhimu  路  3Comments

FernandoMiguel picture FernandoMiguel  路  5Comments