Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure cert id is unique even if the pem is the same.

  • Loading branch information...
commit 739f29798c90ae5632660627ab0a5d3b02adb839 2 parents 70e6d54 + 8b28c28
Ye Wen authored
View
2  clc/modules/authentication/src/main/java/com/eucalyptus/auth/entities/CertificateEntity.java
@@ -73,7 +73,7 @@ public static CertificateEntity newInstanceWithId( final String id ) {
@PrePersist
public void generateOnCommit() {
if( this.certificateId == null ) {
- this.certificateId = Crypto.getHmacProvider( ).generateQueryId( this.pem );
+ this.certificateId = Crypto.getHmacProvider( ).generateQueryId( this.pem + Double.toHexString( Math.random( ) ) );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.