keytool error :java.io.IoException:Incorrect AVA format

前端 未结 9 1478
南笙
南笙 2021-01-30 08:06

I am new to Android development; when I have been trying to sign the application I have got the following error. Can anyone help me on this issue?

keytool error          


        
9条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 08:28

    Special chars/escaping all good answers/could be the problem; you didn't share your actual "keytool" command line so harder to give an accurate answer. If you're trying to gen a pub/priv key pair ("-genkeypair" param), then 1 problem would be that the cert subject distinguished name ("-dname" arg) wasn't specified in the correct X.500 AVA ("Attribute/Value Assertion") format. For example, omitting the "CN=" in front of the subject common name (CN). Param should look something like this:

    keytool ... -dname="CN=SomeCertSubject" ...
    

    In this distinguished name param, "CN" ("Common Name") is the "Attribute", "SomeCertSubject" is the "Value".

提交回复
热议问题